Merge remote-tracking branch 'origin/main' into reafactor-tunes
This commit is contained in:
commit
ead763b909
17 changed files with 12242 additions and 11588 deletions
|
|
@ -214,6 +214,19 @@ function App() {
|
|||
<>loading...</>
|
||||
)}
|
||||
</button>
|
||||
<button
|
||||
onClick={() => {
|
||||
dirty && activateCode();
|
||||
pushLog('Code updated! Tip: You can also update the code by pressing ctrl+enter.');
|
||||
}}
|
||||
className={cx(
|
||||
'hover:bg-gray-300',
|
||||
!isEmbedded ? 'p-2' : 'px-2',
|
||||
!dirty || !activeCode ? 'opacity-50' : '',
|
||||
)}
|
||||
>
|
||||
🔄 update
|
||||
</button>
|
||||
{!isEmbedded && (
|
||||
<button
|
||||
className="hover:bg-gray-300 p-2"
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ const panwidth = (pan, width) => pan * width + (1 - width) / 2;
|
|||
Pattern.prototype.piano = function () {
|
||||
return this.clip(1)
|
||||
.s('piano')
|
||||
.release(.1)
|
||||
.fmap((value) => {
|
||||
const midi = typeof value.note === 'string' ? toMidi(value.note) : value.note;
|
||||
// pan by pitch
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue