full size piano by default

This commit is contained in:
Felix Roos 2024-03-15 12:24:11 +01:00
parent 1043baf08a
commit d9d05e21c0

View File

@ -28,7 +28,7 @@ customElement('strudel-claviature', { options: '{}' }, (props, { element }) => {
});
registerWidget('claviature', (id, options = {}, pat) => {
options = { range: ['A0', 'C6'], scaleY: 1, scaleY: 0.5, scaleX: 0.5, ...options };
options = { range: ['A0', 'C8'], scaleY: 1, scaleY: 0.5, scaleX: 0.5, ...options };
const height = (options.upperHeight + options.lowerHeight) * options.scaleY;
const el = getSolidWidget('strudel-claviature', id, { ...options, height });
return pat.onFrame(id, (haps) => {