Browse Source

Docs: Add block units description to Blocks module

tags/2021-05-28
Noah Dayan 7 years ago
parent
commit
c452e49e8e
3 changed files with 16 additions and 7 deletions
  1. +1
    -1
      modules/juce_blocks_basics/blocks/juce_TouchSurface.h
  2. +12
    -3
      modules/juce_blocks_basics/juce_LittleFootFunctions.dox
  3. +3
    -3
      modules/juce_blocks_basics/littlefoot/LittleFoot Language README.txt

+ 1
- 1
modules/juce_blocks_basics/blocks/juce_TouchSurface.h View File

@@ -64,7 +64,7 @@ public:
*/
float yVelocity;
/** The current pressure of this touch, in the range 0.0 (no pressure) to 1.o (very hard). */
/** The current pressure of this touch, in the range 0.0 (no pressure) to 1.0 (very hard). */
float z;
/** The rate at which pressure is currently changing, measured in units/second. This is


+ 12
- 3
modules/juce_blocks_basics/juce_LittleFootFunctions.dox View File

@@ -226,9 +226,9 @@ void sendChannelPressure (int channel, int pressure);
/** Sets the MIDI channel range.
@param useMPE
@param lowChannel
@param highChannel
@param useMPE whether to use MPE mode
@param lowChannel the lowest MIDI channel
@param highChannel the highest MIDI channel
*/
void setChannelRange (bool useMPE, int lowChannel, int highChannel);
@@ -292,6 +292,9 @@ void onControlRelease (int buttonIndex);
/** Called when a touch event starts.
Block units follow the number of DNA connectors on the side of the device.
For instance, a Lightpad Block is 2x2 and a Control Block is 2x1.
@param index the touch index, which will stay constant for each finger as it is tracked
@param x the X position of this touch on the device, in block units starting from 0 (left)
@param y the Y position of this touch on the device, in block units starting from 0 (top)
@@ -302,6 +305,9 @@ void touchStart (int index, float x, float y, float z, float vz);
/** Called when a touch event moves.
Block units follow the number of DNA connectors on the side of the device.
For instance, a Lightpad Block is 2x2 and a Control Block is 2x1.
@param index the touch index, which will stay constant for each finger as it is tracked
@param x the X position of this touch on the device, in block units starting from 0 (left)
@param y the Y position of this touch on the device, in block units starting from 0 (top)
@@ -312,6 +318,9 @@ void touchMove (int index, float x, float y, float z, float vz);
/** Called when a touch event ends.
Block units follow the number of DNA connectors on the side of the device.
For instance, a Lightpad Block is 2x2 and a Control Block is 2x1.
@param index the touch index, which will stay constant for each finger as it is tracked
@param x the X position of this touch on the device, in block units starting from 0 (left)
@param y the Y position of this touch on the device, in block units starting from 0 (top)


+ 3
- 3
modules/juce_blocks_basics/littlefoot/LittleFoot Language README.txt View File

@@ -46,10 +46,10 @@ The usual control-flow operators are provided, all with C++ style syntax:
Arithmetic ops are the usual suspects, (with the standard operator precedence):
+, -, *, /, %
||, &&, |, &, |, ~
++, --, +=, -=, *=, /=, %=, ^=, |=, &=, ^=
||, &&, |, &, ~, ^
++, --, +=, -=, *=, /=, %=, |=, &=, ^=
==, !=, <, >, <=, >=, !
<<, >>, <<=, >>=
<<, >>, <<=, >>=, >>>
Ternary operator (x ? y : z)
Local variables are declared in C++-style syntax:


Loading…
Cancel
Save