A Composition is the heart of the radiotool.composer. Use it to build an audio file from other audio tracks.
Create a composition made up of bits of different audio tracks.
Initialize a composition with optional starting tracks/segments.
Parameters: |
|
---|---|
Returns: | A new composition |
Return type: | Composition |
Add a dynamic to the composition
Parameters: | dyn (radiotool.composer.Dynamic) – Dynamic to add to composition |
---|
Add a list of dynamics to the composition
Parameters: | dyns (list of radiotool.composer.Dynamic) – Dynamics to add to composition |
---|
Add a music cue to the composition. This doesn’t do any audio analysis, it just aligns a specified point in the track (presumably music) with a location in the composition. See UnderScore for a visualization of what this is doing to the music track.
Parameters: |
|
---|
Add a segment to the composition
Parameters: | segment (radiotool.composer.Segment) – Segment to add to composition |
---|
Add a list of segments to the composition
Parameters: | segments (list of radiotool.composer.Segment) – Segments to add to composition |
---|
Add track to the composition
Parameters: | track (radiotool.composer.Track) – Track to add to composition |
---|
Add a list of tracks to the composition
Parameters: | tracks (list of radiotool.composer.Track) – Tracks to add to composition |
---|
Create a numpy array from the composition.
Parameters: |
|
---|
Add an equal-power crossfade to the composition between two segments.
Parameters: |
|
---|
Get duration of composition
Generate audio file from composition.
Parameters: |
|
---|
Add a fade-in to a segment that extends the beginning of the segment.
Parameters: |
|
---|---|
Returns: | The fade that has been added to the composition |
Return type: | Fade |
Add a fade-out to a segment that extends the beginning of the segment.
Parameters: |
|
---|---|
Returns: | The fade that has been added to the composition |
Return type: | Fade |
Adds a fade in to a segment in the composition
Parameters: |
|
---|---|
Returns: | The fade that has been added to the composition |
Return type: | Fade |
Adds a fade out to a segment in the composition
Parameters: |
|
---|---|
Returns: | The fade that has been added to the composition |
Return type: | Fade |