Skip to content

Buffer / loading sample files #46

@ClaireBookworm

Description

@ClaireBookworm

Even after using onload Buffer as well as the tone.js buffer component, the console still loads buffer is either not set or not loaded. I've checked the network location and it does show that the .wav files have loaded, so is there something we should include in between?

<Song isPlaying={isPlaying} bpm={60}>
    <Track steps={[(props.note)]}>
      {/* <Instrument type="monoSynth" notes={['C3']} envelope={{attack: 0.2,release: 0.5,}} /> */}
      <Instrument
        type="sampler"
        notes={notes}
        samples={{
          A0: "/public/piano/A0vH.wav",
          B0: "/public/piano/B0vH.wav",,
        }}

        onLoad={(buffers) => {
         // runs when all samples are loaded
        }}
      />
    </Track>
</Song>

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions