MCPcopy Create free account

hub / github.com/RustAudio/rimd / functions

Functions106 in github.com/RustAudio/rimd

↓ 21 callersMethodlen
Return the number of bytes this event uses.
src/lib.rs:110
↓ 12 callersMethoddata
(&self, index: usize)
src/midi.rs:138
↓ 9 callersFunctionread_byte
Read a single byte from a Reader
src/util.rs:22
↓ 7 callersMethodclone
(&self)
src/midi.rs:88
↓ 5 callersFunctionfill_buf
Read from reader until buffer is full, or an error occurs
src/util.rs:29
↓ 3 callersMethodabs_time_from_delta
(&self,delta: u64)
src/builder.rs:168
↓ 3 callersMethodwrite_all
Write out all the tracks that have been added to this SMFWriter to the passed writer
src/writer.rs:204
↓ 3 callersMethodwrite_event
(&self, vec: &mut Vec<u8>, event: &Event, length: &mut u32, saw_eot: &mut bool)
src/writer.rs:116
↓ 2 callersMethodadd_event
Add a TrackEvent to the track at index `track`. The event will be added at `event.vtime` after the last event currently in the builder for the track.
src/builder.rs:333
↓ 2 callersMethodchannel
Return the channel this message is on (TODO: return 0 for messages with no channel)
src/midi.rs:111
↓ 2 callersMethodfinish_track_write
(&self, vec: &mut Vec<u8>, length: &mut u32, saw_eot: bool)
src/writer.rs:136
↓ 2 callersFunctionlatin1_decode
(s: &[u8])
src/util.rs:69
↓ 2 callersMethodstart_track_header
(&self, vec: &mut Vec<u8>)
src/writer.rs:104
↓ 1 callersMethodadd_meta_abs
Add a meta event to track at index `track` at absolute time `time`. ## Panics Panics if `track` is >= to the number of tracks in this builder
src/builder.rs:300
↓ 1 callersMethodadd_midi_abs
Add a midi message to track at index `track` at absolute time `time`. ## Panics Panics if `track` is >= to the number of tracks in this builder
src/builder.rs:268
↓ 1 callersMethodadd_track
Add new a track to this builder
src/builder.rs:202
↓ 1 callersMethodadd_track_with_name
Add any sequence of AbsoluteEvents as a track to this writer. A meta event with the given name will be added at the start of the track
src/writer.rs:161
↓ 1 callersMethodcmp
(&self, other: &AbsoluteEvent)
src/builder.rs:85
↓ 1 callersMethodeq
(&self, other: &AbsoluteEvent)
src/builder.rs:59
↓ 1 callersMethodget_event
(&self)
src/builder.rs:47
↓ 1 callersMethodget_time
(&self)
src/builder.rs:51
↓ 1 callersFunctionread_amount
Read amt from reader and put result in dest. Errors in underlying reader will cause this function to return an error
src/util.rs:43
↓ 1 callersMethodresult
(self)
src/builder.rs:139
↓ 1 callersMethodstatus
Return the status (type) of this message
src/midi.rs:106
↓ 1 callersMethodwrite_header
(&self, writer: &mut dyn Write)
src/writer.rs:193
↓ 1 callersMethodwrite_to_file
Write out the result of the tracks that have been added to a file. Warning: This will overwrite an existing file
src/writer.rs:215
Methodadd_meta_rel
Add a meta event to track at index `track` at `delta` ticks after the last message (or at `delta` if no current messages exist) ## Panics Panics if
src/builder.rs:320
Methodadd_midi_rel
Add a midi message to track at index `track` at `delta` ticks after the last message (or at `delta` if no current messages exist) ## Panics Panics i
src/builder.rs:288
Methodadd_static_track
Add a static track to the builder (note this will clone all events in the passed iterator)
src/builder.rs:211
Methodadd_track
Add any sequence of AbsoluteEvents as a track to this writer
src/writer.rs:155
Methodcause
(&self)
src/midi.rs:33
Methodcause
(&self)
src/lib.rs:221
Methodcause
(&self)
src/meta.rs:34
Methodchannel_aftertouch
Create a channel aftertouch This message is most often sent by pressing down on the key after it "bottoms out". This message is different from polypho
src/midi.rs:280
Methodclone
(&self)
src/meta.rs:85
Methodcontrol_change
Create a control change message This message is sent when a controller value changes. Controllers include devices such as pedals and levers. Controlle
src/midi.rs:262
Methodcopyright_notice
Create a copyright notice meta event
src/meta.rs:212
Methodcue_point
Create a cue point meta event
src/meta.rs:258
Methoddata_as_u64
Turn `bytes` bytes of the data of this event into a u64
src/meta.rs:144
Methoddata_bytes
return the number of data bytes for a message with the given status -1 -> variable sized message, call get_variable_size -2 -> sysex, read until SysEx
src/midi.rs:155
Methoddescription
(&self)
src/midi.rs:25
Methoddescription
(&self)
src/lib.rs:212
Methoddescription
(&self)
src/meta.rs:26
Methodend_of_track
Create an end of track meta event
src/meta.rs:285
Methodfmt
(&self, f: &mut fmt::Formatter)
src/midi.rs:42
Methodfmt
(&self, f: &mut fmt::Formatter)
src/lib.rs:83
Methodfmt
(&self, f: &mut fmt::Formatter)
src/meta.rs:43
Methodfmt_with_time_offset
(&self, cur_time: u64)
src/lib.rs:140
Methodfrom
(err: Error)
src/midi.rs:19
Methodfrom
(err: Error)
src/lib.rs:188
Methodfrom
(err: Error)
src/meta.rs:20
Methodfrom_bytes
(bytes: Vec<u8>)
src/midi.rs:144
Methodfrom_file
Read an SMF file at the given path
src/lib.rs:259
Methodfrom_reader
Read an SMF from the given reader
src/lib.rs:265
Methodfrom_smf
Create a writer that has all the tracks from the given SMF already added
src/writer.rs:54
Methodinstrument_name
Create an instrument name meta event
src/meta.rs:230
Methodis_meta
Return true if the event inside this AbsoluteEvent is a meta event, false if it's a midi event
src/builder.rs:40
Methodis_midi
Return true if the event inside this AbsoluteEvent is a midi event, false if it's a meta event
src/builder.rs:31
Methodkey_signature
Create a Key Signature event expressed as the number of sharps or flats, and a major/minor flag. `sharps_flats` of 0 represents a key of C, negative n
src/meta.rs:338
Methodlyric_text
Create a lyric text meta event
src/meta.rs:239
Functionmain
()
src/bin/copy.rs:7
Functionmain
()
src/bin/test.rs:7
Functionmake_status
(status: Status, channel: u8)
src/midi.rs:100
Methodmarker_text
Create a marker text meta event
src/meta.rs:249
Methodmidichannel_prefix_assignment
Create a midi channel prefix assignment meta event
src/meta.rs:267
Methodmidiport_prefix_assignment
Create a midi port prefix assignment meta event
src/meta.rs:276
Methodne
(&self, other: &AbsoluteEvent)
src/builder.rs:78
Methodnew
Create a new SMFBuilder. Initially the builder will have no tracks
src/builder.rs:190
Methodnew_meta
(time: u64, meta: MetaEvent)
src/builder.rs:22
Methodnew_midi
(time: u64, midi: MidiMessage)
src/builder.rs:16
Methodnew_with_division
Create a new SMFWriter with the given number of units per beat. The SMFWriter will initially have no tracks.
src/writer.rs:35
Methodnew_with_division_and_format
Create a new SMFWriter with the given format and number of units per beat. The SMFWriter will initially have no tracks.
src/writer.rs:45
Methodnext_event
(reader: &mut dyn Read, laststat: u8, was_running: &mut bool)
src/reader.rs:48
Methodnext_event
Extract the next meta event from a reader
src/meta.rs:154
Methodnext_message
Extract next midi message from a reader
src/midi.rs:229
Methodnext_message_given_status
Get the next midi message from the reader given that the status `stat` has just been read
src/midi.rs:189
Methodnext_message_running_status
Get the next midi message from the reader given that there's a running status of `stat` and that in place of a status was read `databyte`
src/midi.rs:213
Functionnote_num_to_name
convert a midi note number to a name
src/util.rs:9
Methodnote_off
Create a note off message
src/midi.rs:245
Methodnote_on
Create a note on message
src/midi.rs:238
Methodnum_tracks
Get the number of tracks currenly in the builder
src/builder.rs:197
Methodparse_header
(reader: &mut dyn Read)
src/reader.rs:13
Methodparse_track
(reader: &mut dyn Read)
src/reader.rs:82
Methodpartial_cmp
(&self, other: &AbsoluteEvent)
src/builder.rs:121
Methodpitch_bend
Create a pitch bench message This message is sent to indicate a change in the pitch bender (wheel or lever, typically). The pitch bender is measured b
src/midi.rs:291
Methodpolyphonic_aftertouch
Create a polyphonic aftertouch message This message is most often sent by pressing down on the key after it "bottoms out".
src/midi.rs:253
Methodprogram_change
Create a program change message This message sent when the patch number changes. `program` is the new program number.
src/midi.rs:270
Methodread_smf
Read an entire SMF file
src/reader.rs:188
Methodread_vtime
Read a variable sized value from the reader. This is usually used for the times of midi events but is used elsewhere as well.
src/reader.rs:167
Methodsequence_number
Create a sequence number meta event
src/meta.rs:194
Methodsequence_or_track_name
Create a name meta event
src/meta.rs:221
Methodsequencer_specific_event
This is the MIDI-file equivalent of the System Exclusive Message. sequencer-specific directives can be incorporated into a MIDI file using this event.
src/meta.rs:349
Methodset_copyright
Set the copyright for the track at index `track`. This will also cause a copyright meta event to be inserted. ## Panics Panics if `track` is >= to t
src/builder.rs:235
Methodset_name
Set the name for the track at index `track`. This will also cause a name meta event to be inserted. ## Panics Panics if `track` is >= to the number
src/builder.rs:252
Functionsimple_build
()
src/builder.rs:359
Methodsmpte_offset
Create an smpte offset meta event
src/meta.rs:305
Methodtempo_setting
Create an event to set track tempo. This is stored as a 24-bit value. This method will fail an assertion if the supplied tempo is greater than 2^24.
src/meta.rs:296
Functiontest_note_num_to_name
()
src/util.rs:83
Methodtext_event
Create a text meta event
src/meta.rs:203
Methodtime_signature
Create a time signature event. Time signature of the form: `numerator`/2^`denominator` eg: 6/8 would be specified using `numerator`=6, `denominator`=3
src/meta.rs:325
next →1–100 of 106, ranked by callers