| Home | Trees | Index | Help |
|
|---|
| Package aldrin :: Module utils |
|
| Function Summary | |
|---|---|
| int |
Converts a Buzz note value into a MIDI note value. |
| float |
Translates buffer size to latency. |
| str |
Translates a Buzz byte value into a hexstring ready to be printed in a pattern view. |
| float |
Translates a dB volume to a linear amplitude. |
| str |
Replaces characters in a text in such a way that it's feasible to use it as a filename. |
| str |
Translates a path relative to a base dir into an absolute path. |
| int |
Occasionally, invalid note inputs are being made, either by user error or invalid paste or loading operations. |
| str |
Translates a time value into a string of the format "h:mm:ss:ms". |
| str |
Returns the base folder from which this script is being executed. |
| bool |
Determines whether the application is being executed by a Python installation or it is running standalone (as a py2exe executable.) |
| float |
Translates a linear amplitude to a dB volume. |
| int |
Converts a MIDI note value into a Buzz note value. |
| str |
Translates a Buzz note value into a string of the format "NNO", where NN is note, and O is octave. |
| str |
prepstr ensures that a string is always ready to be displayed in a GUI control by wxWidgets. |
| int |
Rounds a float value to the next integer if its fractional part is larger than 0.5. |
| str |
Translates a Buzz switch value into a hexstring ready to be printed in a pattern view. |
| float |
Translates positions in ticks as returned by libzzub to time values. |
| str |
Translates a Buzz word value into a hexstring ready to be printed in a pattern view. |
| Function Details |
|---|
bn2mn(v)Converts a Buzz note value into a MIDI note value.
|
buffersize_to_latency(bs, sr)Translates buffer size to latency.
|
byte2str(p, v)Translates a Buzz byte value into a hexstring ready to be printed in a pattern view.
|
db2linear(val, limit=-48.0)Translates a dB volume to a linear amplitude.
|
filenameify(text)Replaces characters in a text in such a way that it's feasible to use it as a filename. The result will be lowercase and all special chars replaced by underscores.
|
filepath(path)Translates a path relative to a base dir into an absolute path.
|
fixbn(v)Occasionally, invalid note inputs are being made, either by user error or invalid paste or loading operations. This function fixes a Buzz note value so it has always a correct value.
|
format_time(t)Translates a time value into a string of the format "h:mm:ss:ms".
|
get_root_folder_path()Returns the base folder from which this script is being executed. This is mainly used for windows, where loading of resources relative to the execution folder must be possible, regardless of current working directory.
|
is_frozen()Determines whether the application is being executed by a Python installation or it is running standalone (as a py2exe executable.)
|
linear2db(val, limit=-48.0)Translates a linear amplitude to a dB volume.
|
mn2bn(v)Converts a MIDI note value into a Buzz note value.
|
note2str(p, v)Translates a Buzz note value into a string of the format "NNO", where NN is note, and O is octave.
|
prepstr(s)prepstr ensures that a string is always ready to be displayed in a GUI control by wxWidgets.
|
roundint(v)Rounds a float value to the next integer if its fractional part is larger than 0.5.
|
switch2str(p, v)Translates a Buzz switch value into a hexstring ready to be printed in a pattern view.
|
ticks_to_time(ticks, bpm, tpb)Translates positions in ticks as returned by libzzub to time values.
|
word2str(p, v)Translates a Buzz word value into a hexstring ready to be printed in a pattern view.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Fri Nov 24 13:58:34 2006 | http://epydoc.sf.net |