Skip to content

Commit

Permalink
Merge pull request #22 from electro-smith/dev
Browse files Browse the repository at this point in the history
Dev - Ready for v0.2-beta
  • Loading branch information
stephenhensley authored Dec 8, 2020
2 parents 2016b0a + 331f5f5 commit 91966d8
Show file tree
Hide file tree
Showing 33 changed files with 8,583 additions and 1,395 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ build/
source/build*
notes/
examples/*.cpp
examples/*.h
examples/*.h
help/*.cpp
help/*.h
templates/*.cpp
templates/*.h
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Each Daisy binary can hold several gen~ patcher "apps", which can be switched be

## How gen~ features map to Daisy

Mostly this works by adding an appropriate name to the `in`, `out`, and `param` objects.
Mostly this works by adding an appropriate name to the `in`, `out`, and `param` objects, but many features will also auto-map without special naming.

### Audio

Expand All @@ -20,7 +20,7 @@ Hardware voltages are mapped to gen~ -1..1

### CV/Gate/Knobs/Switches etc.

- `param cv1`, `param gate2`, `param knob1`, `param key2` etc. will give you the CV and gate inputs, hardware knobs, keys, etc. Use `@min` and `@max` to remap the normalized ranges. Use `@min` and `@max` to remap normalized ranges as desired.
- `param cv1`, `param gate2`, `param knob1`, `param key2`, `param knob_delay`, `param switch_enable` etc. will give you the CV and gate inputs, hardware knobs, keys, etc. Use `@min` and `@max` to remap the normalized ranges. Use `@min` and `@max` to remap normalized ranges as desired.
- Oopsy will try to auto-map any other `param` objects to any unused Knob/CV inputs.
- `out <n> cv1`, `out <n> gate2`, etc. will send the signal to corresponding CV or Gate outputs if the device has them. `<n>` just needs to be an output channel number that isn't being used for anything else.
- CV/gate inputs and outputs are sampled at block rate, which on the default configuration of the Daisy is every 48 samples = 1ms. Trigger/gates shorter than 1-2ms might be missed.
Expand Down
269 changes: 269 additions & 0 deletions code/oopsy.ctrl.smooth2.gendsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,269 @@
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 1,
"revision" : 8,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "dsp.gen",
"rect" : [ 84.0, 103.0, 466.0, 288.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 1,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 1,
"objectsnaponopen" : 1,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"lefttoolbarpinned" : 0,
"toptoolbarpinned" : 0,
"righttoolbarpinned" : 0,
"bottomtoolbarpinned" : 0,
"toolbars_unpinned_last_save" : 0,
"tallnewobj" : 0,
"boxanimatetime" : 200,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"style" : "",
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"boxes" : [ {
"box" : {
"id" : "obj-15",
"linecount" : 8,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 254.0, 61.0, 150.0, 114.0 ],
"text" : "A 2-pole lowpass filter at 10Hz seems to effectively silence noise from hardware input ADCs.\n\nBut a 10Hz filter might be too slow to respond, if so, try the smooth3 option."
}

}
, {
"box" : {
"fontname" : "Lato",
"fontsize" : 12.0,
"id" : "obj-8",
"maxclass" : "newobj",
"numinlets" : 3,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 118.0, 193.0, 46.0, 23.0 ],
"text" : "mix"
}

}
, {
"box" : {
"fontname" : "Lato",
"fontsize" : 12.0,
"id" : "obj-9",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 118.0, 153.0, 45.0, 23.0 ],
"text" : "history"
}

}
, {
"box" : {
"fontname" : "Lato",
"fontsize" : 12.0,
"id" : "obj-4",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 118.0, 239.0, 37.0, 23.0 ],
"text" : "out 1"
}

}
, {
"box" : {
"fontname" : "Lato",
"fontsize" : 12.0,
"id" : "obj-6",
"maxclass" : "newobj",
"numinlets" : 3,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 44.0, 193.0, 46.0, 23.0 ],
"text" : "mix"
}

}
, {
"box" : {
"fontname" : "Lato",
"fontsize" : 12.0,
"id" : "obj-10",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 127.5, 53.0, 109.0, 23.0 ],
"text" : "* twopi/samplerate"
}

}
, {
"box" : {
"fontname" : "Lato",
"fontsize" : 12.0,
"id" : "obj-14",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 44.0, 153.0, 45.0, 23.0 ],
"text" : "history"
}

}
, {
"box" : {
"fontname" : "Lato",
"fontsize" : 12.0,
"id" : "obj-5",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 127.5, 84.0, 26.0, 23.0 ],
"text" : "sin"
}

}
, {
"box" : {
"fontname" : "Lato",
"fontsize" : 12.0,
"id" : "obj-1",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 57.5, 84.0, 28.0, 23.0 ],
"text" : "in 1"
}

}
, {
"box" : {
"fontname" : "Lato",
"fontsize" : 12.0,
"id" : "obj-2",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 127.5, 23.0, 22.0, 23.0 ],
"text" : "10"
}

}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-6", 1 ],
"source" : [ "obj-1", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-5", 0 ],
"source" : [ "obj-10", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-6", 0 ],
"source" : [ "obj-14", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-10", 0 ],
"source" : [ "obj-2", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-6", 2 ],
"midpoints" : [ 137.0, 121.5, 80.5, 121.5 ],
"order" : 1,
"source" : [ "obj-5", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-8", 2 ],
"midpoints" : [ 137.0, 122.5, 154.5, 122.5 ],
"order" : 0,
"source" : [ "obj-5", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-14", 0 ],
"midpoints" : [ 53.5, 222.0, 31.5, 222.0, 31.5, 141.0, 53.5, 141.0 ],
"order" : 1,
"source" : [ "obj-6", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-8", 1 ],
"order" : 0,
"source" : [ "obj-6", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-4", 0 ],
"order" : 0,
"source" : [ "obj-8", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-9", 0 ],
"midpoints" : [ 127.5, 222.0, 105.5, 222.0, 105.5, 141.0, 127.5, 141.0 ],
"order" : 1,
"source" : [ "obj-8", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-8", 0 ],
"source" : [ "obj-9", 0 ]
}

}
]
}

}
Loading

0 comments on commit 91966d8

Please sign in to comment.