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. |
Shows an error message dialog. | |
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". |
Converts hue/saturation/brightness into red/green/blue components. | |
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. |
Reads an 32bit integer from a binary file. | |
Reads a pascal string (32bit len, data) from a binary file. | |
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 zzub to time values. |
Converts red/green/blue into hue/saturation/brightness components. | |
str |
Translates a Buzz word value into a hexstring ready to be printed in a pattern view. |
Writes a 32bit integer to a binary file. | |
Writes a pascal string (32bit len, data) to a binary file. | |
is_debug()
|
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.
|
error(parent, msg)Shows an error message dialog. |
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".
|
from_hsb(h=0.0, s=1.0, b=1.0)Converts hue/saturation/brightness into red/green/blue components. |
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.
|
read_int(f)Reads an 32bit integer from a binary file. |
read_string(f)Reads a pascal string (32bit len, data) from a binary file. |
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 zzub to time values.
|
to_hsb(r, g, b)Converts red/green/blue into hue/saturation/brightness components. |
word2str(p, v)Translates a Buzz word value into a hexstring ready to be printed in a pattern view.
|
write_int(f, v)Writes a 32bit integer to a binary file. |
write_string(f, s)Writes a pascal string (32bit len, data) to a binary file. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Feb 4 18:01:14 2007 | http://epydoc.sf.net |