티스토리 뷰
const int sampleWindow = 30; //샘플링 시간 ms
unsigned int sample;
int ledPin = 3;
int solPin = 6;
int laPin = 7;
int doPin = 8;
int rePin = 9;
int miPin = 10;
int solButton = 1;
int laButton = 2;
int doButton = 3;
int reButton = 4;
int miButton = 5;
boolean solState, laState, doState, reState, miState;
boolean solPrevState, laPrevState, doPrevState, rePrevState, miPrevState;
int currentState;
void setup() {
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
pinMode(solPin, INPUT);
pinMode(laPin, INPUT);
pinMode(doPin, INPUT);
pinMode(rePin, INPUT);
pinMode(miPin, INPUT);
boolean solPrevState, laPrevState, doPrevState, rePrevState, miPrevState = false;
currentState = 0;
}
void loop() {
solState = buttonPressed(solPin);
laState = buttonPressed(laPin);
doState = buttonPressed(doPin);
reState = buttonPressed(rePin);
miState = buttonPressed(miPin);
if(solState != solPrevState){
if(solState == true);{
currentState = solButton;
}
}
if(laState != laPrevState){
if(laState == true){
currentState = laButton;
}
}
if(doState != doPrevState){
if(doState == true){
currentState = doButton;
}
}
if(reState != rePrevState){
if(reState == true){
currentState = reButton;
}
}
if(miState != miPrevState){
if(miState == true){
currentState = miButton;
}
}
if(solState == false && laState == false && doState == false && reState == false && miState == false){
currentState = 0;
}
//눌린 버튼 판정
unsigned long startMillis = millis(); // 생플링 시작
unsigned int peakToPeak = 0; // 음성신호의 진폭
unsigned int signalMax = 0;
unsigned int signalMin = 1024;
// 생플링 구간동안 최댓값과 최소값을 읽어들입니다.
while (millis() - startMillis < sampleWindow)
{
sample = analogRead(0);
if (sample < 1024) // toss out spurious readings
{
if (sample > signalMax)
{
signalMax = sample; // save just the max levels
}
else if (sample < signalMin)
{
signalMin = sample; // save just the min levels
}
}
}
peakToPeak = signalMax - signalMin; // 최대값에서 최소값을 빼서 진폭을 계산
int mic = peakToPeak;
//마이크 입력 판정
analogWrite(ledPin, mic);
//mic 값에 따라 led의 밝기를 실시간으로 조절
Serial.print(currentState);
Serial.print(" ");
Serial.println(mic);
//maxmsp로 출력
solPrevState = solState;
laPrevState = laState;
doPrevState = doState;
rePrevState = reState;
miPrevState = miState;
//state 기록
delay(100);
}
boolean buttonPressed(int pinName){
if(digitalRead(pinName) == LOW){
return true;
}
return false;
}
//해당 부품은 눌렀을 때 digitalRead에 LOW를 출력 한다.
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 7,
"minor" : 3,
"revision" : 3,
"architecture" : "x64",
"modernui" : 1
}
,
"rect" : [ 42.0, 85.0, 1126.0, 749.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" : "",
"boxes" : [ {
"box" : {
"id" : "obj-6",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 83.0, 37.0, 29.5, 22.0 ],
"style" : "",
"text" : "1"
}
}
, {
"box" : {
"id" : "obj-1",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 177.0, 7.0, 60.0, 22.0 ],
"style" : "",
"text" : "loadbang"
}
}
, {
"box" : {
"id" : "obj-158",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 826.0, 179.0, 60.0, 22.0 ],
"style" : "",
"text" : "loadbang"
}
}
, {
"box" : {
"id" : "obj-155",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 875.0, 409.0, 45.0, 22.0 ],
"style" : "",
"text" : "-60 20"
}
}
, {
"box" : {
"id" : "obj-153",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 997.5, 300.0, 29.5, 22.0 ],
"style" : "",
"text" : "20"
}
}
, {
"box" : {
"id" : "obj-148",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 869.0, 356.0, 56.0, 22.0 ],
"style" : "",
"text" : "pack 0 0"
}
}
, {
"box" : {
"id" : "obj-139",
"maxclass" : "number",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 898.0, 473.0, 50.0, 22.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-137",
"maxclass" : "number",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 966.0, 391.0, 50.0, 22.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-135",
"maxclass" : "newobj",
"numinlets" : 3,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 875.0, 438.0, 167.0, 22.0 ],
"style" : "",
"text" : "line"
}
}
, {
"box" : {
"id" : "obj-123",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 765.75, 626.0, 29.5, 22.0 ],
"style" : "",
"text" : "0"
}
}
, {
"box" : {
"id" : "obj-124",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 681.75, 626.0, 29.5, 22.0 ],
"style" : "",
"text" : "1"
}
}
, {
"box" : {
"id" : "obj-125",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 681.75, 564.0, 29.5, 22.0 ],
"style" : "",
"text" : "1"
}
}
, {
"box" : {
"id" : "obj-126",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 723.75, 564.0, 29.5, 22.0 ],
"style" : "",
"text" : "0"
}
}
, {
"box" : {
"id" : "obj-127",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 702.75, 466.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-128",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 723.75, 538.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-129",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 681.75, 473.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-130",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 681.75, 538.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-131",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "bang", "" ],
"patching_rect" : [ 681.75, 514.0, 61.0, 22.0 ],
"style" : "",
"text" : "sel 0"
}
}
, {
"box" : {
"id" : "obj-132",
"maxclass" : "newobj",
"numinlets" : 5,
"numoutlets" : 4,
"outlettype" : [ "int", "", "", "int" ],
"patching_rect" : [ 681.75, 494.0, 61.0, 22.0 ],
"style" : "",
"text" : "counter"
}
}
, {
"box" : {
"id" : "obj-133",
"maxclass" : "gswitch2",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"parameter_enable" : 0,
"patching_rect" : [ 719.0, 616.0, 39.0, 32.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-134",
"maxclass" : "toggle",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"parameter_enable" : 0,
"patching_rect" : [ 765.75, 650.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-111",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 613.75, 626.0, 29.5, 22.0 ],
"style" : "",
"text" : "0"
}
}
, {
"box" : {
"id" : "obj-112",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 529.75, 626.0, 29.5, 22.0 ],
"style" : "",
"text" : "1"
}
}
, {
"box" : {
"id" : "obj-113",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 529.75, 564.0, 29.5, 22.0 ],
"style" : "",
"text" : "1"
}
}
, {
"box" : {
"id" : "obj-114",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 571.75, 564.0, 29.5, 22.0 ],
"style" : "",
"text" : "0"
}
}
, {
"box" : {
"id" : "obj-115",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 550.75, 466.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-116",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 571.75, 538.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-117",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 529.75, 473.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-118",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 529.75, 538.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-119",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "bang", "" ],
"patching_rect" : [ 529.75, 514.0, 61.0, 22.0 ],
"style" : "",
"text" : "sel 0"
}
}
, {
"box" : {
"id" : "obj-120",
"maxclass" : "newobj",
"numinlets" : 5,
"numoutlets" : 4,
"outlettype" : [ "int", "", "", "int" ],
"patching_rect" : [ 529.75, 494.0, 61.0, 22.0 ],
"style" : "",
"text" : "counter"
}
}
, {
"box" : {
"id" : "obj-121",
"maxclass" : "gswitch2",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"parameter_enable" : 0,
"patching_rect" : [ 567.0, 616.0, 39.0, 32.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-122",
"maxclass" : "toggle",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"parameter_enable" : 0,
"patching_rect" : [ 613.75, 650.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-99",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 461.75, 626.0, 29.5, 22.0 ],
"style" : "",
"text" : "0"
}
}
, {
"box" : {
"id" : "obj-100",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 377.75, 626.0, 29.5, 22.0 ],
"style" : "",
"text" : "1"
}
}
, {
"box" : {
"id" : "obj-101",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 377.75, 564.0, 29.5, 22.0 ],
"style" : "",
"text" : "1"
}
}
, {
"box" : {
"id" : "obj-102",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 419.75, 564.0, 29.5, 22.0 ],
"style" : "",
"text" : "0"
}
}
, {
"box" : {
"id" : "obj-103",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 398.75, 466.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-104",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 419.75, 538.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-105",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 377.75, 473.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-106",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 377.75, 538.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-107",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "bang", "" ],
"patching_rect" : [ 377.75, 514.0, 61.0, 22.0 ],
"style" : "",
"text" : "sel 0"
}
}
, {
"box" : {
"id" : "obj-108",
"maxclass" : "newobj",
"numinlets" : 5,
"numoutlets" : 4,
"outlettype" : [ "int", "", "", "int" ],
"patching_rect" : [ 377.75, 494.0, 61.0, 22.0 ],
"style" : "",
"text" : "counter"
}
}
, {
"box" : {
"id" : "obj-109",
"maxclass" : "gswitch2",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"parameter_enable" : 0,
"patching_rect" : [ 415.0, 616.0, 39.0, 32.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-110",
"maxclass" : "toggle",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"parameter_enable" : 0,
"patching_rect" : [ 461.75, 650.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-85",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 311.75, 635.0, 29.5, 22.0 ],
"style" : "",
"text" : "0"
}
}
, {
"box" : {
"id" : "obj-88",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 227.75, 635.0, 29.5, 22.0 ],
"style" : "",
"text" : "1"
}
}
, {
"box" : {
"id" : "obj-89",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 227.75, 573.0, 29.5, 22.0 ],
"style" : "",
"text" : "1"
}
}
, {
"box" : {
"id" : "obj-90",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 269.75, 573.0, 29.5, 22.0 ],
"style" : "",
"text" : "0"
}
}
, {
"box" : {
"id" : "obj-91",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 248.75, 475.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-92",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 269.75, 547.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-93",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 227.75, 482.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-94",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 227.75, 547.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-95",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "bang", "" ],
"patching_rect" : [ 227.75, 523.0, 61.0, 22.0 ],
"style" : "",
"text" : "sel 0"
}
}
, {
"box" : {
"id" : "obj-96",
"maxclass" : "newobj",
"numinlets" : 5,
"numoutlets" : 4,
"outlettype" : [ "int", "", "", "int" ],
"patching_rect" : [ 227.75, 503.0, 61.0, 22.0 ],
"style" : "",
"text" : "counter"
}
}
, {
"box" : {
"id" : "obj-97",
"maxclass" : "gswitch2",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"parameter_enable" : 0,
"patching_rect" : [ 265.0, 625.0, 39.0, 32.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-98",
"maxclass" : "toggle",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"parameter_enable" : 0,
"patching_rect" : [ 311.75, 659.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-50",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 125.0, 647.0, 29.5, 22.0 ],
"style" : "",
"text" : "0"
}
}
, {
"box" : {
"id" : "obj-45",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 41.0, 647.0, 29.5, 22.0 ],
"style" : "",
"text" : "1"
}
}
, {
"box" : {
"id" : "obj-43",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 41.0, 585.0, 29.5, 22.0 ],
"style" : "",
"text" : "1"
}
}
, {
"box" : {
"id" : "obj-40",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 83.0, 585.0, 29.5, 22.0 ],
"style" : "",
"text" : "0"
}
}
, {
"box" : {
"id" : "obj-37",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 62.0, 487.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-33",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 83.0, 559.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-31",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 41.0, 494.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-28",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 41.0, 559.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-18",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "bang", "" ],
"patching_rect" : [ 41.0, 535.0, 61.0, 22.0 ],
"style" : "",
"text" : "sel 0"
}
}
, {
"box" : {
"id" : "obj-17",
"maxclass" : "newobj",
"numinlets" : 5,
"numoutlets" : 4,
"outlettype" : [ "int", "", "", "int" ],
"patching_rect" : [ 41.0, 515.0, 61.0, 22.0 ],
"style" : "",
"text" : "counter"
}
}
, {
"box" : {
"id" : "obj-16",
"maxclass" : "gswitch2",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"parameter_enable" : 0,
"patching_rect" : [ 78.25, 637.0, 39.0, 32.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-7",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 232.0, 228.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-4",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 269.0, 102.0, 56.0, 22.0 ],
"style" : "",
"text" : "print"
}
}
, {
"box" : {
"id" : "obj-87",
"maxclass" : "newobj",
"numinlets" : 6,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 826.0, 307.0, 103.0, 22.0 ],
"style" : "",
"text" : "scale 0 100 -70 6"
}
}
, {
"box" : {
"id" : "obj-86",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 912.25, 817.5, 29.5, 22.0 ],
"style" : "",
"text" : "-70"
}
}
, {
"box" : {
"id" : "obj-81",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 912.25, 785.5, 60.0, 22.0 ],
"style" : "",
"text" : "loadbang"
}
}
, {
"box" : {
"id" : "obj-80",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 943.75, 817.5, 29.5, 22.0 ],
"style" : "",
"text" : "1"
}
}
, {
"box" : {
"id" : "obj-74",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 561.25, 432.0, 29.5, 22.0 ],
"style" : "",
"text" : "1"
}
}
, {
"box" : {
"id" : "obj-75",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 529.75, 432.0, 29.5, 22.0 ],
"style" : "",
"text" : "0"
}
}
, {
"box" : {
"id" : "obj-72",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 683.0, 432.0, 29.5, 22.0 ],
"style" : "",
"text" : "1"
}
}
, {
"box" : {
"id" : "obj-73",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 651.5, 432.0, 29.5, 22.0 ],
"style" : "",
"text" : "0"
}
}
, {
"box" : {
"id" : "obj-70",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 425.0, 432.0, 29.5, 22.0 ],
"style" : "",
"text" : "1"
}
}
, {
"box" : {
"id" : "obj-71",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 393.5, 432.0, 29.5, 22.0 ],
"style" : "",
"text" : "0"
}
}
, {
"box" : {
"id" : "obj-68",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 275.0, 432.0, 29.5, 22.0 ],
"style" : "",
"text" : "1"
}
}
, {
"box" : {
"id" : "obj-69",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 243.5, 432.0, 29.5, 22.0 ],
"style" : "",
"text" : "0"
}
}
, {
"box" : {
"id" : "obj-67",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 122.5, 432.0, 29.5, 22.0 ],
"style" : "",
"text" : "1"
}
}
, {
"box" : {
"id" : "obj-66",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 68.5, 728.0, 60.0, 22.0 ],
"style" : "",
"text" : "loadbang"
}
}
, {
"box" : {
"id" : "obj-64",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 684.5, 762.0, 78.0, 22.0 ],
"style" : "",
"text" : "open mi.wav"
}
}
, {
"box" : {
"id" : "obj-65",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 3,
"outlettype" : [ "signal", "signal", "bang" ],
"patching_rect" : [ 706.5, 690.0, 59.0, 22.0 ],
"saved_object_attributes" : {
"basictuning" : 440,
"followglobaltempo" : 0,
"formantcorrection" : 0,
"mode" : "basic",
"originallength" : [ 116168.489796, "ticks" ],
"originaltempo" : 120.0,
"pitchcorrection" : 0,
"quality" : "basic",
"timestretch" : [ 0 ]
}
,
"style" : "",
"text" : "sfplay~ 2"
}
}
, {
"box" : {
"id" : "obj-58",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 540.5, 762.0, 76.0, 22.0 ],
"style" : "",
"text" : "open re.wav"
}
}
, {
"box" : {
"id" : "obj-59",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 3,
"outlettype" : [ "signal", "signal", "bang" ],
"patching_rect" : [ 562.5, 690.0, 59.0, 22.0 ],
"saved_object_attributes" : {
"basictuning" : 440,
"followglobaltempo" : 0,
"formantcorrection" : 0,
"mode" : "basic",
"originallength" : [ 116168.489796, "ticks" ],
"originaltempo" : 120.0,
"pitchcorrection" : 0,
"quality" : "basic",
"timestretch" : [ 0 ]
}
,
"style" : "",
"text" : "sfplay~ 2"
}
}
, {
"box" : {
"id" : "obj-61",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 398.5, 763.0, 79.0, 22.0 ],
"style" : "",
"text" : "open do.wav"
}
}
, {
"box" : {
"id" : "obj-62",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 3,
"outlettype" : [ "signal", "signal", "bang" ],
"patching_rect" : [ 420.5, 691.0, 59.0, 22.0 ],
"saved_object_attributes" : {
"basictuning" : 440,
"followglobaltempo" : 0,
"formantcorrection" : 0,
"mode" : "basic",
"originallength" : [ 116168.489796, "ticks" ],
"originaltempo" : 120.0,
"pitchcorrection" : 0,
"quality" : "basic",
"timestretch" : [ 0 ]
}
,
"style" : "",
"text" : "sfplay~ 2"
}
}
, {
"box" : {
"id" : "obj-55",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 251.5, 763.0, 75.0, 22.0 ],
"style" : "",
"text" : "open la.wav"
}
}
, {
"box" : {
"id" : "obj-56",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 3,
"outlettype" : [ "signal", "signal", "bang" ],
"patching_rect" : [ 273.5, 691.0, 59.0, 22.0 ],
"saved_object_attributes" : {
"basictuning" : 440,
"followglobaltempo" : 0,
"formantcorrection" : 0,
"mode" : "basic",
"originallength" : [ 116168.489796, "ticks" ],
"originaltempo" : 120.0,
"pitchcorrection" : 0,
"quality" : "basic",
"timestretch" : [ 0 ]
}
,
"style" : "",
"text" : "sfplay~ 2"
}
}
, {
"box" : {
"id" : "obj-53",
"maxclass" : "toggle",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"parameter_enable" : 0,
"patching_rect" : [ 125.0, 671.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-51",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 109.5, 764.0, 81.0, 22.0 ],
"style" : "",
"text" : "open sol.wav"
}
}
, {
"box" : {
"id" : "obj-49",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 3,
"outlettype" : [ "signal", "signal", "bang" ],
"patching_rect" : [ 125.0, 697.0, 59.0, 22.0 ],
"saved_object_attributes" : {
"basictuning" : 440,
"followglobaltempo" : 0,
"formantcorrection" : 0,
"mode" : "basic",
"originallength" : [ 116168.489796, "ticks" ],
"originaltempo" : 120.0,
"pitchcorrection" : 0,
"quality" : "basic",
"timestretch" : [ 0 ]
}
,
"style" : "",
"text" : "sfplay~ 2"
}
}
, {
"box" : {
"id" : "obj-48",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 83.0, 432.0, 29.5, 22.0 ],
"style" : "",
"text" : "0"
}
}
, {
"box" : {
"id" : "obj-46",
"maxclass" : "newobj",
"numinlets" : 7,
"numoutlets" : 7,
"outlettype" : [ "bang", "bang", "bang", "bang", "bang", "bang", "" ],
"patching_rect" : [ 39.5, 356.0, 682.0, 22.0 ],
"style" : "",
"text" : "sel 0 1 2 3 4 5"
}
}
, {
"box" : {
"format" : 6,
"id" : "obj-41",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 826.0, 290.0, 50.0, 22.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-39",
"maxclass" : "number",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 39.5, 332.0, 50.0, 22.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-35",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "int", "int" ],
"patching_rect" : [ 39.5, 307.0, 69.0, 22.0 ],
"style" : "",
"text" : "unpack 0 0"
}
}
, {
"box" : {
"id" : "obj-34",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 121.75, 250.0, 50.0, 22.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-32",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 116.0, 274.0, 50.0, 22.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-30",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 177.0, 216.0, 50.0, 22.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-26",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 269.0, 193.0, 57.0, 22.0 ],
"style" : "",
"text" : "print raw"
}
}
, {
"box" : {
"id" : "obj-25",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 39.5, 274.0, 73.0, 22.0 ],
"style" : "",
"text" : "fromsymbol"
}
}
, {
"box" : {
"id" : "obj-24",
"maxclass" : "newobj",
"numinlets" : 3,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"patching_rect" : [ 39.5, 250.0, 40.0, 22.0 ],
"style" : "",
"text" : "itoa"
}
}
, {
"box" : {
"id" : "obj-23",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 39.5, 193.0, 83.0, 22.0 ],
"style" : "",
"text" : "zl group 1000"
}
}
, {
"box" : {
"id" : "obj-22",
"maxclass" : "newobj",
"numinlets" : 3,
"numoutlets" : 3,
"outlettype" : [ "bang", "bang", "" ],
"patching_rect" : [ 39.5, 124.0, 59.0, 22.0 ],
"style" : "",
"text" : "sel 13 10"
}
}
, {
"box" : {
"id" : "obj-21",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "int", "" ],
"patching_rect" : [ 39.5, 100.0, 79.0, 22.0 ],
"style" : "",
"text" : "serial c 9600"
}
}
, {
"box" : {
"id" : "obj-20",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 39.5, 76.0, 58.0, 22.0 ],
"style" : "",
"text" : "metro 20"
}
}
, {
"box" : {
"id" : "obj-19",
"maxclass" : "toggle",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"parameter_enable" : 0,
"patching_rect" : [ 35.5, 42.0, 24.0, 24.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-5",
"maxclass" : "live.gain~",
"numinlets" : 2,
"numoutlets" : 5,
"outlettype" : [ "signal", "signal", "", "float", "list" ],
"parameter_enable" : 1,
"patching_rect" : [ 869.0, 585.0, 48.0, 136.0 ],
"saved_attribute_attributes" : {
"valueof" : {
"parameter_longname" : "live.gain~",
"parameter_shortname" : "live.gain~",
"parameter_type" : 0,
"parameter_mmin" : -70.0,
"parameter_mmax" : 6.0,
"parameter_initial" : [ 0.0 ],
"parameter_unitstyle" : 4
}
}
,
"varname" : "live.gain~"
}
}
, {
"box" : {
"id" : "obj-2",
"maxclass" : "ezdac~",
"numinlets" : 2,
"numoutlets" : 0,
"patching_rect" : [ 835.0, 900.5, 45.0, 45.0 ],
"style" : ""
}
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-6", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-1", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-109", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-100", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-100", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-101", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-109", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-101", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-109", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-102", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-108", 2 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-103", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-99", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-103", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-102", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-104", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-108", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-105", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-101", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-106", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-104", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-107", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-106", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-107", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-107", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-108", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-110", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-109", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-62", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-110", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-122", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-111", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-121", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-112", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-112", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-113", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-121", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-113", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-121", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-114", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-111", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-115", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-120", 2 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-115", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-114", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-116", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-120", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-117", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-113", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-118", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-116", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-119", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-118", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-119", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-119", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-120", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-122", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-121", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-59", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-122", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-134", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-123", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-133", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-124", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-124", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-125", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-133", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-125", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-133", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-126", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-123", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-127", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-132", 2 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-127", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-126", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-128", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-132", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-129", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-125", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-130", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-128", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-131", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-130", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-131", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-131", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-132", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-134", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-133", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-65", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-134", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-139", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-135", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-135", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-137", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-139", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-155", 1 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-148", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-155", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-148", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-148", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-153", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-135", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-155", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-153", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-158", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-53", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-16", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-18", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-17", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-28", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-18", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-33", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-18", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-20", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-19", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-21", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-20", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-22", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-21", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-26", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-21", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-23", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-22", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-23", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-22", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-24", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-23", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-30", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-23", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-25", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-24", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-34", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-24", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-32", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-25", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-35", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-25", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-43", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-28", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-17", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-31", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-40", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-33", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-39", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-35", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-41", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-35", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-17", 2 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-37", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-50", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-37", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-46", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-39", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-21", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-4", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-16", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-40", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-87", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-41", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-16", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-43", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-45", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-43", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-16", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-45", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-48", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 4,
"source" : [ "obj-46", 5 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-48", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 4,
"source" : [ "obj-46", 4 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-48", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 4,
"source" : [ "obj-46", 3 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-48", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 4,
"source" : [ "obj-46", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-48", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 4,
"source" : [ "obj-46", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-67", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 4,
"source" : [ "obj-46", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-68", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 3,
"source" : [ "obj-46", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-69", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 3,
"source" : [ "obj-46", 5 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-69", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 3,
"source" : [ "obj-46", 4 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-69", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 3,
"source" : [ "obj-46", 3 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-69", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 3,
"source" : [ "obj-46", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-69", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 3,
"source" : [ "obj-46", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-70", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 2,
"source" : [ "obj-46", 3 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-71", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 2,
"source" : [ "obj-46", 5 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-71", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 2,
"source" : [ "obj-46", 4 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-71", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 2,
"source" : [ "obj-46", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-71", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 2,
"source" : [ "obj-46", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-71", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 2,
"source" : [ "obj-46", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-72", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-46", 5 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-73", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-46", 4 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-73", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-46", 3 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-73", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-46", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-73", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-46", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-73", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-46", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-74", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-46", 4 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-75", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-46", 5 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-75", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-46", 3 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-75", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-46", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-75", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-46", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-75", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-46", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-37", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-48", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-49", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-49", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-2", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-5", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-5", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-53", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-50", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-49", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-51", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-49", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-53", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-56", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-55", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-56", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-56", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-59", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-58", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-59", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-59", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-19", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-6", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-62", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-61", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-62", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-62", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-65", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-64", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-65", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-65", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-51", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 4,
"source" : [ "obj-66", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-55", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 3,
"source" : [ "obj-66", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-58", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-66", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-61", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 2,
"source" : [ "obj-66", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-64", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-66", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-31", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-67", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-93", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-68", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-91", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-69", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-21", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-7", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-105", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-70", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-103", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-71", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-129", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-72", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-127", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-73", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-117", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-74", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-115", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-75", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-80", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-80", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-81", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-86", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-81", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-98", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-85", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-86", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-148", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-87", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-97", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-88", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-88", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-89", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-97", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-89", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-97", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-90", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-85", 0 ],
"disabled" : 0,
"hidden" : 0,
"order" : 0,
"source" : [ "obj-91", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-96", 2 ],
"disabled" : 0,
"hidden" : 0,
"order" : 1,
"source" : [ "obj-91", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-90", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-92", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-96", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-93", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-89", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-94", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-92", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-95", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-94", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-95", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-95", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-96", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-98", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-97", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-56", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-98", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-110", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-99", 0 ]
}
}
],
"parameters" : {
"obj-5" : [ "live.gain~", "live.gain~", 0 ]
}
,
"dependency_cache" : [ ],
"autosave" : 0
}
}
참고 코드
사운드 센서 : http://blog.naver.com/roboholic84/220801048809
아두이노-Max/MSP 연동 : https://www.youtube.com/watch?v=6bT3G4Mep7E
'디벨로핑' 카테고리의 다른 글
| 병나발 부품 명세 (0) | 2017.04.30 |
|---|---|
| 병나발 회로도 (0) | 2017.04.30 |
| 병나발 MAX msp 코드 (0) | 2017.04.13 |
| 병나발 아두이노 코드 (0) | 2017.04.13 |
| 병나발 구현 관련 코드 링크 (0) | 2017.04.11 |