var searchIndex = {}; searchIndex["sampler"] = {"doc":"","items":[[3,"Frames","sampler","An iterator yielding one frame from the `Sampler` at a time.",null,null],[3,"Sampler","","A Sampler instrument.",null,null],[12,"instrument","","",0,null],[12,"map","","",0,null],[0,"dynamic","","",null,null],[6,"Sampler","sampler::dynamic","An alias for a `Sampler` type that uses a dynamic instrument and note frequency mode.",null,null],[0,"map","sampler","",null,null],[3,"Map","sampler::map","A type that maps frequncy and velocity ranges to audio samples.",null,null],[12,"pairs","","",1,null],[3,"Sample","","A performable `Sample` with some base playback Hz and Velocity.",null,null],[12,"base_hz","","",2,null],[12,"base_vel","","",2,null],[12,"audio","","",2,null],[3,"HzVelRange","","A 2-dimensional space, represented as a frequency range and a velocity range.",null,null],[12,"hz","","",3,null],[12,"vel","","",3,null],[3,"SampleOverRange","","A range paired with a specific sample.",null,null],[12,"range","","",4,null],[12,"sample","","",4,null],[3,"Range","","A continuous range of `T` from the `min` to the `max`.",null,null],[12,"min","","",5,null],[12,"max","","",5,null],[0,"wav","","",null,null],[3,"Audio","sampler::map::wav","WAV data loaded into memory as a single contiguous slice of PCM frames.",null,null],[12,"path","","",6,null],[12,"data","","",6,null],[12,"sample_hz","","",6,null],[6,"Sample","","An alias for the `wav` `Sample` type.",null,null],[11,"eq","","",6,null],[11,"ne","","",6,null],[11,"fmt","","",6,null],[11,"clone","","",6,null],[11,"data","","",6,null],[11,"from_file","","Loads a `Sample` from the `.wav` file at the given `path`.",6,{"inputs":[{"name":"p"},{"name":"f64"}],"output":{"name":"result"}}],[11,"from_wav_file","","Loads a `Sample` from the `.wav` file at the given `path`.",7,{"inputs":[{"name":"p"},{"name":"f64"}],"output":{"name":"result"}}],[8,"Audio","sampler::map","The audio data that provides the slice of frames that are to be rendered.",null,null],[16,"Frame","","The type of `Frame` data associated with the audio.",8,null],[10,"data","","A reference to the slice of frames used to play the audio.",8,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"eq","","",2,null],[11,"ne","","",2,null],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"partial_cmp","","",3,null],[11,"lt","","",3,null],[11,"le","","",3,null],[11,"gt","","",3,null],[11,"ge","","",3,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"fmt","","",3,null],[11,"clone","","",3,null],[11,"eq","","",4,null],[11,"ne","","",4,null],[11,"fmt","","",4,null],[11,"clone","","",4,null],[11,"partial_cmp","","",5,null],[11,"lt","","",5,null],[11,"le","","",5,null],[11,"gt","","",5,null],[11,"ge","","",5,null],[11,"eq","","",5,null],[11,"ne","","",5,null],[11,"fmt","","",5,null],[11,"clone","","",5,null],[11,"is_over","","Is the given hz greater than or equal to the `min` and smaller than the `max`.",5,null],[11,"is_over","","Is the given velocity greater than or equal to the `min` and smaller than the `max`.",5,null],[11,"new","","Constructor for a new `Sample` with the given base Hz and Velocity.",2,{"inputs":[{"name":"hz"},{"name":"velocity"},{"name":"a"}],"output":{"name":"self"}}],[11,"empty","","Construct an empty `Map`.",1,{"inputs":[],"output":{"name":"self"}}],[11,"from_sequential_mappings","","Construct a `Map` from a series of mappings, starting from (-C2, 1.0).",1,{"inputs":[{"name":"i"}],"output":{"name":"self"}}],[11,"from_single_sample","","Creates a `Map` with a single sample mapped to the entire Hz and Velocity range.",1,{"inputs":[{"name":"sample"}],"output":{"name":"self"}}],[11,"insert","","Inserts a range -> audio mapping into the Map.",1,null],[11,"sample","","Returns the `Audio` associated with the range within which the given hz and velocity exist.",1,null],[11,"fmt","sampler","",0,null],[11,"clone","","",0,null],[11,"legato","","Construct a `Sampler` with a `Mono::Legato` playback mode.",0,{"inputs":[{"name":"nfg"},{"name":"map"}],"output":{"name":"self"}}],[11,"retrigger","","Construct a `Sampler` with a `Mono::Retrigger` playback mode.",0,{"inputs":[{"name":"nfg"},{"name":"map"}],"output":{"name":"self"}}],[11,"poly","","Construct a `Sampler` with a `Poly` playback mode.",0,{"inputs":[{"name":"nfg"},{"name":"map"}],"output":{"name":"self"}}],[11,"new","","Construct a new `Sampler`.",0,{"inputs":[{"name":"m"},{"name":"nfg"},{"name":"map"}],"output":{"name":"self"}}],[11,"map_instrument","","Map the `Instrument` to a new `Instrument` in place.",0,null],[11,"num_voices","","Build the `Sampler` with the given number of voices.",0,null],[11,"voice_count","","Return the number of voices for use within the `Sampler`.",0,null],[11,"detune","","Detune the `note_on` hz by the given amount.",0,null],[11,"attack","","Set the attack.",0,null],[11,"release","","Set the release.",0,null],[11,"set_num_voices","","Set the number of voices to use for",0,null],[11,"note_on","","Begin playback of a note.",0,null],[11,"note_off","","Stop playback of the note that was triggered with the matching frequency.",0,null],[11,"stop","","Stop playback and clear the current notes.",0,null],[11,"frames","","Produces an iterator that yields `Frame`s of audio data.",0,null],[11,"is_active","","Returns whether or not the `Sampler` is currently playing any notes.",0,null],[11,"fill_slice","","Fills the given slice of frames with the `Sampler::frames` iterator.",0,null],[11,"next_frame","","Yields the next audio `Frame`.",9,null],[11,"next","","",9,null],[6,"Velocity","","",null,null],[8,"Mode","","The "mode" with which the Sampler will handle notes.",null,null],[10,"note_on","","Handle a `note_on` event.",10,null],[10,"note_off","","Handle a `note_off` event.",10,null]],"paths":[[3,"Sampler"],[3,"Map"],[3,"Sample"],[3,"HzVelRange"],[3,"SampleOverRange"],[3,"Range"],[3,"Audio"],[6,"Sample"],[8,"Audio"],[3,"Frames"],[8,"Mode"]]}; initSearch(searchIndex);