Skip to content

Instantly share code, notes, and snippets.

@s3thi
Created January 12, 2016 08:48
Show Gist options
  • Select an option

  • Save s3thi/e1ab0ba296fed33fd63d to your computer and use it in GitHub Desktop.

Select an option

Save s3thi/e1ab0ba296fed33fd63d to your computer and use it in GitHub Desktop.
sampler.js – gain slider (template)
`
<div><button (click)='playSample()' [disabled]='loadingSample'>play</button></div>
<div>
<label for='playbackRate'>Playback rate: </label>
<input type='range' min='0.01' max='5.0' step='0.01' [(ngModel)]='playbackRate' id='playbackRate'>
</div>
<div>
<label for='gain'>Volume: </label>
<input type='range' min='0' max='1.0' step='0.1' [(ngModel)]='gain' id='gain'>
</div>
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment