Skip to content

Commit

Permalink
Compact instrument example
Browse files Browse the repository at this point in the history
  • Loading branch information
kmturley committed Feb 9, 2024
1 parent b74cf62 commit 751956e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/components/Audio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class Audio extends Event {
}

async showFile(file: FileLocal | FileRemote | undefined) {
console.time('showFile');
this.dispatchEvent('preload', {
status: `Loading sfz files`,
});
Expand Down Expand Up @@ -96,6 +97,7 @@ class Audio extends Event {
console.timeEnd('preloadFiles');

this.dispatchEvent('loading', false);
console.timeEnd('showFile');
}

getKeyboardMap(regions: ParseOpcodeObj[]) {
Expand Down
7 changes: 5 additions & 2 deletions src/demos/index-dist.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
id: 'freepats/spanish-classical-guitar'
},
{
branch: 'web',
name: 'Basic Harmonica',
id: 'studiorack/basic-harmonica'
},
Expand All @@ -82,10 +81,14 @@
id: 'studiorack/sams-sonor'
},
{
branch: 'web',
name: 'Black and Green Guitars',
id: 'studiorack/black-and-green-guitars'
},
{
branch: 'compact',
name: 'Black and Green Guitars (Compact)',
id: 'studiorack/black-and-green-guitars'
},
{
name: 'Horse Pulse',
id: 'studiorack/horse-pulse'
Expand Down
7 changes: 5 additions & 2 deletions src/demos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
id: 'freepats/spanish-classical-guitar'
},
{
branch: 'web',
name: 'Basic Harmonica',
id: 'studiorack/basic-harmonica'
},
Expand All @@ -81,10 +80,14 @@
id: 'studiorack/sams-sonor'
},
{
branch: 'web',
name: 'Black and Green Guitars',
id: 'studiorack/black-and-green-guitars'
},
{
branch: 'compact',
name: 'Black and Green Guitars (Compact)',
id: 'studiorack/black-and-green-guitars'
},
{
name: 'Horse Pulse',
id: 'studiorack/horse-pulse'
Expand Down

0 comments on commit 751956e

Please sign in to comment.