Finalization of OSC API, Tutorial for TouchOSC
@@ -69,11 +69,8 @@ void Control::RequestListener::ProcessMessage( const osc::ReceivedMessage& m,
|
|||||||
// Log target: just print text in log window
|
// Log target: just print text in log window
|
||||||
if ( target.compare(OSC_INFO) == 0 )
|
if ( target.compare(OSC_INFO) == 0 )
|
||||||
{
|
{
|
||||||
if ( attribute.compare(OSC_SYNC) == 0) {
|
if ( attribute.compare(OSC_INFO_NOTIFY) == 0) {
|
||||||
// send the global status
|
Log::Notify(CONTROL_OSC_MSG "received '%s' from %s", FullMessage(m).c_str(), sender);
|
||||||
Control::manager().sendOutputStatus(remoteEndpoint);
|
|
||||||
// send the status of all sources
|
|
||||||
Control::manager().sendSourcesStatus(remoteEndpoint, m.ArgumentStream());
|
|
||||||
}
|
}
|
||||||
else if ( attribute.compare(OSC_INFO_LOG) == 0) {
|
else if ( attribute.compare(OSC_INFO_LOG) == 0) {
|
||||||
Log::Info(CONTROL_OSC_MSG "received '%s' from %s", FullMessage(m).c_str(), sender);
|
Log::Info(CONTROL_OSC_MSG "received '%s' from %s", FullMessage(m).c_str(), sender);
|
||||||
@@ -96,7 +93,6 @@ void Control::RequestListener::ProcessMessage( const osc::ReceivedMessage& m,
|
|||||||
// send the status of all sources
|
// send the status of all sources
|
||||||
Control::manager().sendSourcesStatus(remoteEndpoint, m.ArgumentStream());
|
Control::manager().sendSourcesStatus(remoteEndpoint, m.ArgumentStream());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
// ALL sources target: apply attribute to all sources of the session
|
// ALL sources target: apply attribute to all sources of the session
|
||||||
else if ( target.compare(OSC_ALL) == 0 )
|
else if ( target.compare(OSC_ALL) == 0 )
|
||||||
@@ -318,7 +314,7 @@ bool Control::receiveOutputAttribute(const std::string &attribute,
|
|||||||
// if argument is given, it is a duration
|
// if argument is given, it is a duration
|
||||||
if (!arguments.Eos())
|
if (!arguments.Eos())
|
||||||
arguments >> f >> osc::EndMessage;
|
arguments >> f >> osc::EndMessage;
|
||||||
Mixer::manager().session()->setFadingTarget( Mixer::manager().session()->fading() + f * 0.001);
|
Mixer::manager().session()->setFadingTarget( Mixer::manager().session()->fading() - f * 0.01);
|
||||||
need_feedback = true;
|
need_feedback = true;
|
||||||
}
|
}
|
||||||
else if ( attribute.compare(OSC_OUTPUT_FADE_OUT) == 0) {
|
else if ( attribute.compare(OSC_OUTPUT_FADE_OUT) == 0) {
|
||||||
@@ -326,7 +322,7 @@ bool Control::receiveOutputAttribute(const std::string &attribute,
|
|||||||
// if argument is given, it is a duration
|
// if argument is given, it is a duration
|
||||||
if (!arguments.Eos())
|
if (!arguments.Eos())
|
||||||
arguments >> f >> osc::EndMessage;
|
arguments >> f >> osc::EndMessage;
|
||||||
Mixer::manager().session()->setFadingTarget( Mixer::manager().session()->fading() - f * 0.001);
|
Mixer::manager().session()->setFadingTarget( Mixer::manager().session()->fading() + f * 0.01);
|
||||||
need_feedback = true;
|
need_feedback = true;
|
||||||
}
|
}
|
||||||
#ifdef CONTROL_DEBUG
|
#ifdef CONTROL_DEBUG
|
||||||
@@ -402,7 +398,7 @@ bool Control::receiveSourceAttribute(Source *target, const std::string &attribut
|
|||||||
else if ( attribute.compare(OSC_SOURCE_DEPTH) == 0) {
|
else if ( attribute.compare(OSC_SOURCE_DEPTH) == 0) {
|
||||||
float x = 0.f;
|
float x = 0.f;
|
||||||
arguments >> x >> osc::EndMessage;
|
arguments >> x >> osc::EndMessage;
|
||||||
target->call( new SetDepth(x) );
|
target->call( new SetDepth(x), true );
|
||||||
}
|
}
|
||||||
/// e.g. '/vimix/current/translation ff 10.0 2.2'
|
/// e.g. '/vimix/current/translation ff 10.0 2.2'
|
||||||
else if ( attribute.compare(OSC_SOURCE_GRAB) == 0) {
|
else if ( attribute.compare(OSC_SOURCE_GRAB) == 0) {
|
||||||
|
|||||||
@@ -7,13 +7,14 @@
|
|||||||
|
|
||||||
#define OSC_INFO "/info"
|
#define OSC_INFO "/info"
|
||||||
#define OSC_INFO_LOG "/log"
|
#define OSC_INFO_LOG "/log"
|
||||||
|
#define OSC_INFO_NOTIFY "/notify"
|
||||||
|
|
||||||
#define OSC_OUTPUT "/output"
|
#define OSC_OUTPUT "/output"
|
||||||
#define OSC_OUTPUT_ENABLE "/enable"
|
#define OSC_OUTPUT_ENABLE "/enable"
|
||||||
#define OSC_OUTPUT_DISABLE "/disable"
|
#define OSC_OUTPUT_DISABLE "/disable"
|
||||||
#define OSC_OUTPUT_FADING "/fading"
|
#define OSC_OUTPUT_FADING "/fading"
|
||||||
#define OSC_OUTPUT_FADE_IN "/fadein"
|
#define OSC_OUTPUT_FADE_IN "/fade-in"
|
||||||
#define OSC_OUTPUT_FADE_OUT "/fadeout"
|
#define OSC_OUTPUT_FADE_OUT "/fade-out"
|
||||||
|
|
||||||
#define OSC_ALL "/all"
|
#define OSC_ALL "/all"
|
||||||
#define OSC_SELECTED "/selected"
|
#define OSC_SELECTED "/selected"
|
||||||
|
|||||||
BIN
docs/images/TouchOSC Mk1 vimix current.jpg
Normal file
|
After Width: | Height: | Size: 138 KiB |
BIN
docs/images/TouchOSC Mk1 vimix mixing.jpg
Normal file
|
After Width: | Height: | Size: 160 KiB |
BIN
docs/images/TouchOSC Mk1 vimix tuto 0.png
Normal file
|
After Width: | Height: | Size: 117 KiB |
BIN
docs/images/TouchOSC Mk1 vimix tuto 1.png
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
docs/images/TouchOSC Mk1 vimix tuto 2.png
Normal file
|
After Width: | Height: | Size: 76 KiB |
BIN
docs/images/TouchOSC Mk1 vimix tuto 3.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
docs/images/TouchOSC Mk1 vimix tuto 4.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
docs/images/TouchOSC Mk1 vimix tuto 5.png
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
docs/images/TouchOSC Mk1 vimix tuto 6.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
docs/images/TouchOSC Mk1 vimix tuto 7.png
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
docs/images/TouchOSC Mk1 vimix tuto 8.png
Normal file
|
After Width: | Height: | Size: 52 KiB |