Вверх ↑
Этот топик читают: Гость
Ответов: 140
Рейтинг: 2
#1: 2018-04-10 19:58:52 ЛС | профиль | цитата
Когда то делал цветомузыку и мне предоставили этот замечательный код
Код


Add(BASS_FFT_2048,6826875,273,168)
{
SoundStream="InetStream"
IndexMin=1
IndexMax=465
link(onIndFreq,3396470:doValue,[(312,174)(312,104)])
link(onAmpl,9978168:doCompare,[])
}
Add(MainForm,16148704,70,273)
{
Left=200
Top=100
Width=555
Height=518
Caption="Цвет"
Point(Handle)
link(onCreate,10584020:doInit,[])
}
Add(BASS_Version,10386414,168,287)
{
link(onCheckOk,9381023:doInit,[])
link(onCheckFailed,15920464:doMessage,[(208,300)(208,342)])
}
Add(Message,699574,168,336)
{
Message="Error BASS initialization"
Caption="Error"
Icon=1
}
Add(Message,15920464,217,336)
{
Message="Incorrect version of BASS library "
Caption="Error"
Icon=1
}
Add(BASS_Init,10584020,119,287)
{
Device=1
link(onInit,10386414:doCheck,[])
link(onError,699574:doMessage,[(159,300)(159,342)])
link(Handle,16148704:Handle,[(139,278)(111,278)(111,313)(76,313)])
}
Add(Timer,3026740,189,140)
{
Interval=50
Enable=1
link(onTimer,7985684:doEvent1,[])
}
Add(Hub,7985684,238,140)
{
OutCount=5
link(onEvent1,14288503:doClear,[(711,146)(711,188)])
link(onEvent2,9611191:doClear,[(655,153)(655,195)])
link(onEvent3,5604344:doClear,[(599,160)(599,202)])
link(onEvent4,14970704:doClear,[(543,167)(543,209)])
link(onEvent5,6826875:doFFT,[])
}
Add(If_else,9978168,322,175)
{
Type=3
Op2=Integer(10)
link(onTrue,14288503:doOperation,[])
link(onFalse,2730178:doCompare,[])
link(Op1,7771117:Var2,[])
}
Add(If_else,2730178,371,182)
{
Type=3
Op2=Integer(37)
link(onTrue,9611191:doOperation,[])
link(onFalse,16314774:doCompare,[])
link(Op1,10660149:Var2,[])
}
Add(If_else,16314774,420,189)
{
Type=3
Op2=Integer(162)
link(onTrue,5604344:doOperation,[])
link(onFalse,6774799:doCompare,[])
link(Op1,3965535:Var2,[])
}
Add(If_else,6774799,469,196)
{
Type=3
Op2=Integer(464)
link(onTrue,14970704:doOperation,[])
link(onFalse,7977717:doEvent1,[(508,209)(508,279)])
link(Op1,3965535:Var3,[(475,138)])
}
Add(Math,14288503,728,175)
{
Point(doClear)
link(Op1,10080805:Var1,[(734,166)(720,166)(720,215)])
}
Add(Math,9611191,672,182)
{
Point(doClear)
link(Op1,14947317:Var1,[(678,173)(664,173)(664,222)])
}
Add(Math,5604344,616,189)
{
Point(doClear)
link(Op1,8273571:Var1,[(622,173)(608,173)(608,229)])
}
Add(Math,14970704,560,196)
{
Point(doClear)
link(Op1,7010810:Var1,[(566,173)(552,173)(552,236)])
}
Add(GetDataEx,7010810,560,231)
{
link(Data,14970704:Result,[])
}
Add(GetDataEx,8273571,616,224)
{
link(Data,5604344:Result,[])
}
Add(GetDataEx,14947317,672,217)
{
link(Data,9611191:Result,[])
}
Add(GetDataEx,10080805,728,210)
{
link(Data,14288503:Result,[])
}
Add(Hub,7977717,525,273)
{
OutCount=4
link(onEvent1,7488752:doCalc,[])
link(onEvent2,7654984:doCalc,[])
link(onEvent3,8054890:doCalc,[])
link(onEvent4,11303960:doCalc,[])
}
Add(Hub,8264596,147,42)
{
link(onEvent1,5066922:doStart,[(224,48)(224,55)])
link(onEvent2,3026740:doTimer,[(179,55)(179,146)])
}
Add(Hub,1742348,147,70)
{
link(onEvent1,5066922:doStop,[(224,76)(224,62)])
link(onEvent2,3026740:doStop,[(172,83)(172,153)])
}
Add(Memory,3396470,322,98)
{
Default=Integer(0)
}
Add(GetDataEx,7771117,322,133)
{
link(Data,3396470:Value,[])
}
Add(GetDataEx,10660149,371,133)
{
Angle=3
link(Data,7771117:Var3,[])
}
Add(GetDataEx,3965535,420,133)
{
Angle=3
link(Data,10660149:Var3,[])
}
Add(ChildPanel,13650818,812,273)
{
link(onEvent1,4399351:doWork1,[(919,279)(919,314)])
}
BEGIN_SDK
Add(EditMulti,14606757,21,21)
{
EventCount=1
WorkCount=1
link(doWork1,12335601:doEvent1,[(60,27)(60,76)])
}
Add(Panel,5415222,105,35)
{
Left=85
Top=5
Width=240
Height=225
Point(doColor)
}
Add(Hub,12335601,70,70)
{
OutCount=4
link(onEvent1,5415222:doColor,[(95,76)(95,48)])
link(onEvent2,1592569:doPosition,[])
link(onEvent3,1592569:doColor,[])
link(onEvent4,14606757:onEvent1,[(202,97)(202,27)])
}
Add(ProgressBar,1592569,105,77)
{
Width=130
Height=5
Align=2
Max=255
ProgressColor=255
Point(doColor)
}
END_SDK
Add(ChildPanel,3768545,28,42)
{
link(onEvent1,14962654:1,[])
link(onEvent2,1742348:doEvent1,[(120,55)(120,76)])
}
BEGIN_SDK
Add(EditMulti,12567687,21,21)
{
EventCount=2
VarCount=5
Width=587
Height=333
link(Var1,7108077:Position,[(27,173)(83,173)])
link(Var2,14151973:Position,[(34,180)(125,180)])
link(Var3,4063166:Position,[(41,187)(167,187)])
link(Var4,12032338:Position,[(48,194)(209,194)])
}
Add(Panel,531907,420,196)
{
Width=80
Height=480
Align=1
}
Add(Button,12876091,168,21)
{
Left=5
Top=5
Caption="Open"
link(onClick,12567687:onEvent1,[])
}
Add(Button,298707,203,77)
{
Left=5
Top=35
Caption="XX"
link(onClick,12567687:onEvent2,[(249,83)(249,34)])
}
Add(ScrollBar,7108077,77,133)
{
Left=5
Top=80
Width=10
Height=150
Color=255
Max=100
Page=50
Position=10
Kind=1
}
Add(ScrollBar,14151973,119,133)
{
Left=25
Top=80
Width=10
Height=150
Color=65535
Max=100
Page=50
Position=10
Kind=1
}
Add(ScrollBar,4063166,161,133)
{
Left=45
Top=80
Width=10
Height=150
Color=65280
Max=100
Page=50
Position=10
Kind=1
}
Add(ScrollBar,12032338,203,133)
{
Left=65
Top=80
Width=10
Height=150
Color=16711680
Max=100
Page=50
Position=10
Kind=1
}
END_SDK
Add(MathParse,11303960,560,294)
{
MathStr="(round(%1*%2)*65536 ‹ 16711680)*round(%1*%2)*65536 + (round(%1*%2)*65536 ›= 16711680)*16711680"
ResultType=0
link(onResult,14017017:doWork1,[(599,300)(599,412)])
link(X1,7010810:Var2,[])
link(X2,3768545:Var4,[(573,243)(55,243)])
}
Add(MathParse,8054890,616,287)
{
MathStr="(round(%1*%2)*256‹65280)*round(%1*%2)*256 + (round(%1*%2)*256›=65280)*65280"
ResultType=0
link(onResult,3602490:doWork1,[(655,293)(655,363)])
link(X1,8273571:Var2,[])
link(X2,3768545:Var3,[(629,250)(48,250)])
}
Add(MathParse,7654984,672,280)
{
MathStr="((round(%1*%2)*256 + round(%1*%2))‹65535)*(round(%1*%2)*256 + round(%1*%2)) + ((round(%1*%2)*256 + round(%1*%2))›=65535)*65535"
ResultType=0
link(onResult,16150945:doWork1,[(711,286)(711,321)])
link(X1,14947317:Var2,[])
link(X2,3768545:Var2,[(685,257)(41,257)])
}
Add(MathParse,7488752,728,273)
{
MathStr="((%1*%2)‹255)*%1*%2 + ((%1*%2)›=255)*255"
ResultType=0
link(onResult,13650818:doWork1,[])
link(X1,10080805:Var2,[])
link(X2,3768545:Var1,[(741,264)(34,264)])
}
Add(ChildPanel,16150945,812,315)
{
link(onEvent1,4399351:doWork2,[])
}
BEGIN_SDK
Add(EditMulti,6997819,21,21)
{
EventCount=1
WorkCount=1
link(doWork1,12915409:doEvent1,[(60,27)(60,76)])
}
Add(Panel,869147,105,35)
{
Left=325
Top=5
Width=215
Height=225
Point(doColor)
}
Add(Hub,12915409,70,70)
{
OutCount=4
link(onEvent1,869147:doColor,[(95,76)(95,48)])
link(onEvent2,7366405:doPosition,[])
link(onEvent3,7366405:doColor,[])
link(onEvent4,6997819:onEvent1,[(202,97)(202,27)])
}
Add(ProgressBar,7366405,105,77)
{
Width=130
Height=5
Align=2
Max=65536
ProgressColor=65535
Point(doColor)
}
END_SDK
Add(ChildPanel,3602490,812,357)
{
link(onEvent1,4399351:doWork3,[(863,363)(863,328)])
}
BEGIN_SDK
Add(EditMulti,9863869,21,21)
{
EventCount=1
WorkCount=1
link(doWork1,8962210:doEvent1,[(60,27)(60,76)])
}
Add(Panel,14766402,105,35)
{
Left=85
Top=230
Width=240
Height=190
Point(doColor)
}
Add(Hub,8962210,70,70)
{
OutCount=4
link(onEvent1,14766402:doColor,[(95,76)(95,48)])
link(onEvent2,14810965:doPosition,[])
link(onEvent3,14810965:doColor,[])
link(onEvent4,9863869:onEvent1,[(202,97)(202,27)])
}
Add(ProgressBar,14810965,105,77)
{
Width=130
Height=5
Align=2
Max=65536
ProgressColor=65280
Point(doColor)
}
END_SDK
Add(ChildPanel,14017017,812,406)
{
link(onEvent1,4399351:doWork4,[(876,412)(876,335)])
}
BEGIN_SDK
Add(EditMulti,234910,21,21)
{
EventCount=1
WorkCount=1
link(doWork1,16014047:doEvent1,[(60,27)(60,76)])
}
Add(Panel,10668822,105,35)
{
Left=325
Top=230
Width=215
Height=190
Point(doColor)
}
Add(Hub,16014047,70,70)
{
OutCount=4
link(onEvent1,10668822:doColor,[(95,76)(95,48)])
link(onEvent2,8622099:doPosition,[])
link(onEvent3,8622099:doColor,[])
link(onEvent4,234910:onEvent1,[(202,97)(202,27)])
}
Add(ProgressBar,8622099,105,77)
{
Width=130
Height=5
Align=2
Max=16711680
ProgressColor=16711680
Point(doColor)
}
END_SDK
Add(BASS_RecordStart,5066922,266,49)
{
Freq=44100
Mode=1
Name="InetStream"
}
Add(BASS_RecordCenter,9381023,245,287)
{
}
Add(ChildPanel,4399351,994,308)
{
}
BEGIN_SDK
Add(EditMulti,1251153,21,21)
{
WorkCount=4
link(doWork1,3877807:doText,[])
link(doWork2,9681856:doText,[])
link(doWork3,917552:doText,[])
link(doWork4,10646676:doText,[])
}
Add(Panel,15527511,35,105)
{
Left=80
Top=420
Width=457
Height=61
}
Add(Label,3877807,98,21)
{
Left=10
Top=5
Color=255
}
Add(Label,9681856,147,28)
{
Left=65
Top=5
Color=65535
}
Add(Label,917552,196,35)
{
Left=130
Top=5
Color=65280
}
Add(Label,10646676,259,42)
{
Left=190
Top=5
Color=16711680
}
END_SDK
Add(ChildFormEx,14962654,91,42)
{
link(2,8264596:doEvent1,[])
}
BEGIN_SDK
Add(EditMultiEx,12152852,21,21)
{
WorkCount=#1:1|
EventCount=#1:2|
Width=839
Height=550
link(1,11394153:doWork1,[(70,27)(70,125)])
}
Add(MainForm,10289392,308,77)
{
Left=35
Top=105
Width=132
Height=73
Visible=1
Point(doVisible)
link(onCreate,7159817:doEnum,[(348,97)(348,202)])
}
Add(ComboBox,12151437,427,196)
{
Left=5
Top=5
Width=100
Height=21
Point(onSelect)
Point(doSelect)
link(onClick,14942148:doWork2,[])
}
Add(BASS_RecordCenter,5969461,497,203)
{
link(onInit,12152852:2,[(695,209)(695,27)])
link(onError,10640461:doString,[])
}
Add(BASS_RecordDevices,7159817,371,196)
{
link(onEnum,12151437:doAdd,[])
}
Add(Message,11364135,609,210)
{
Caption="Error!"
Icon=1
link(Message,10640461:FString,[(615,198)(583,198)(583,254)(552,254)])
}
Add(FormatStr,10640461,546,210)
{
DataCount=1
Mask="Внимание\r\nИнициализировать устройство записи не удалось\r\nКод ошибки: %1"
Point(FString)
link(onFString,11364135:doMessage,[])
}
Add(MultiElement,11394153,84,119)
{
link(onEvent1,13628856:doWork1,[(221,125)(221,102)(284,102)])
link(onEvent2,10117610:doEvent,[(170,132)(170,160)])
}
BEGIN_SDK
Add(EditMulti,16190741,21,21)
{
EventCount=2
WorkCount=1
Width=755
link(doWork1,16687622:doEvent1,[(49,27)(49,83)])
}
Add(CounterEx,172047,154,112)
{
Point(doReset)
}
Add(Hub,16687622,77,77)
{
link(onEvent1,14771772:doEvent,[])
link(onEvent2,172047:doNext,[(126,90)(126,118)])
}
Add(Timer,7056188,154,35)
{
Interval=100
Enable=1
AutoStop=5
Point(Enabled)
link(onTimer,2268672:doNext,[])
}
Add(IndexToChanel,14771772,154,77)
{
Point(Index)
link(onEvent1,7056188:doTimer,[(196,83)(196,72)(142,72)(142,41)])
link(Index,7056188:Enabled,[])
}
Add(CounterEx,2268672,224,35)
{
Max=10
Point(doReset)
link(onNext,14893342:doCompare,[])
}
Add(If_else,16029866,154,161)
{
Type=4
Op2=Integer(2)
link(onTrue,16190741:onEvent1,[(481,167)(481,27)])
link(onFalse,16190741:onEvent2,[(525,174)(525,34)])
link(Op1,172047:Count,[])
}
Add(If_else,14893342,287,35)
{
Op2=Integer(5)
link(onTrue,7531287:doEvent1,[])
}
Add(Hub,7531287,343,35)
{
OutCount=3
link(onEvent1,2268672:doReset,[(367,41)(367,9)(212,9)(212,48)])
link(onEvent2,16414080:In,[])
link(onEvent3,172047:doReset,[(394,55)(394,147)(142,147)(142,125)])
}
Add(LineBreak,13592298,98,161)
{
link(Out,16029866:doCompare,[])
Primary=[16414080,280,-119]
}
END_SDK
Add(IndexToChanel,10117610,182,154)
{
Point(Index)
link(onEvent1,9528033:doEvent1,[])
link(onEvent2,14942148:doWork1,[(253,187)(480,187)])
link(Index,7519764:Value,[])
}
Add(HubEx,13628856,280,105)
{
link(onEvent,10289392:doVisible,[])
}
Add(Hub,9528033,231,154)
{
link(onEvent1,13628856:doWork3,[(284,160)])
link(onEvent2,3827704:doData,[])
}
Add(HubEx,14942148,476,203)
{
link(onEvent,5969461:doInit,[])
}
Add(DoData,3827704,266,161)
{
Data=Integer(1)
link(onEventData,7519764:doValue,[(318,167)(318,236)(145,236)(145,76)])
}
Add(Memory,7519764,182,70)
{
Default=Integer(0)
}
END_SDK


Но вот в качестве цветомузыки это оказалось не очень
Желательно усреднение звука
Сделал так, но большая задержка мешает

Add(VolumeSummator,9715200,518,154)
{
Mode=1
link(onResult,1330680:doAdd,[])
}
Add(MainForm,7560479,70,161)
{
Left=35
Top=105
Width=307
Height=296
Caption="CM"
Point(doVisible)
Point(Handle)
Point(onClose)
Point(doIcon)
link(onCreate,11104879:In,[])
link(onClose,1690552:doReleaseMutex,[(114,188)(114,249)(62,249)(62,223)])
}
Add(MultiElementEx,1690552,70,210)
{
link(Закрытие программы,7159817:doEnum,[])
link(onEvent2,7560479:doClose,[(128,223)(128,261)(53,261)(53,188)])
link(Handle,7560479:Handle,[])
}
BEGIN_SDK
Add(EditMultiEx,2355765,21,21)
{
WorkCount=#15:Старт программы|14:doReleaseMutex|
EventCount=#18:Закрытие программы|8:onEvent2|
DataCount=#6:Handle|
Width=727
Height=193
link(Старт программы,7755726:doCreateMutex,[(81,27)(81,62)])
link(doReleaseMutex,7755726:doReleaseMutex,[(52,34)(52,76)])
}
Add(BASS_Init,9671764,245,147)
{
link(onInit,2355765:Закрытие программы,[(513,153)(513,27)])
link(Handle,2355765:Handle,[(265,133)(27,133)])
}
Add(Mutex,7755726,140,56)
{
Name="My_Prog_Solar1Musik"
link(onCreated,9671764:doInit,[(208,62)(208,153)])
link(onAlreadyExists,13726837:doEvent1,[])
}
Add(Message,1283278,301,63)
{
Message="Запуск 2-й копии программы!\r\nДействие не возможно!"
Caption="Error"
Icon=1
}
Add(Hub,13726837,273,63)
{
link(onEvent1,1283278:doMessage,[])
link(onEvent2,2355765:onEvent2,[(629,76)(629,34)])
}
END_SDK
Add(LineBreak,5198619,7,210)
{
link(Out,1690552:Старт программы,[])
Primary=[11104879,112,-35]
}
Add(BASS_RecordStart,8276871,469,217)
{
Freq=44100
Mode=1
Name="Mic"
link(onStart,445311:doCreate,[])
link(onData,4332296:In,[])
}
Add(BASS_StreamCreate,445311,588,217)
{
DataType=1
Name="123"
link(onCreate,5990025:doPlay,[])
link(Data,1330680:Stream,[])
}
Add(MultiElementEx,2558874,322,455)
{
link(Red,13875248:In,[])
link(Gren,15672408:In,[])
link(Blue,565496:In,[])
link(Yellow,10244161:In,[])
link(R,4825167:Var,[])
link(G,12123633:Var,[])
link(B,1140039:Var,[])
link(Y,13502264:Var,[])
}
BEGIN_SDK
Add(EditMultiEx,3631491,21,21)
{
WorkCount=#6:Launch|
EventCount=#3:Red|4:Gren|4:Blue|6:Yellow|8:onEvent5|
DataCount=#1:R|1:G|1:B|1:Y|
Width=804
Height=431
VOffset=50
HOffset=50
link(Launch,12909090:doEvent1,[(148,77)(148,160)])
}
Add(BASS_FFT_2048,6905521,266,182)
{
SoundStream="parent.123"
IndexMin=1
IndexMax=465
link(onIndFreq,4664687:doValue,[(305,188)(305,118)])
link(onAmpl,11426137:doCompare,[])
}
Add(If_else,11426137,315,189)
{
Type=3
Op2=Integer(10)
link(onTrue,4090371:doOperation,[])
link(onFalse,9229989:doCompare,[])
link(Op1,5686515:Var2,[])
}
Add(If_else,9229989,364,196)
{
Type=3
Op2=Integer(37)
link(onTrue,10548772:doOperation,[])
link(onFalse,217394:doCompare,[])
link(Op1,3373615:Var2,[])
}
Add(If_else,217394,413,203)
{
Type=3
Op2=Integer(162)
link(onTrue,8629152:doOperation,[])
link(onFalse,11808343:doCompare,[])
link(Op1,4018831:Var2,[])
}
Add(If_else,11808343,462,210)
{
Type=3
Op2=Integer(464)
link(onTrue,11297584:doOperation,[])
link(onFalse,44338:doEvent1,[(501,223)(501,293)])
link(Op1,4018831:Var3,[(468,152)])
}
Add(Math,4090371,721,189)
{
Point(doClear)
link(Op1,15163546:Var1,[(727,180)(713,180)(713,229)])
}
Add(Math,10548772,665,196)
{
Point(doClear)
link(Op1,14748562:Var1,[(671,187)(657,187)(657,236)])
}
Add(Math,8629152,609,203)
{
Point(doClear)
link(Op1,1139134:Var1,[(615,187)(601,187)(601,243)])
}
Add(Math,11297584,553,210)
{
Point(doClear)
link(Op1,157106:Var1,[(559,187)(545,187)(545,250)])
}
Add(GetDataEx,157106,553,245)
{
link(Data,11297584:Result,[])
}
Add(GetDataEx,1139134,609,238)
{
link(Data,8629152:Result,[])
}
Add(GetDataEx,14748562,665,231)
{
link(Data,10548772:Result,[])
}
Add(GetDataEx,15163546,721,224)
{
link(Data,4090371:Result,[])
}
Add(Hub,44338,518,287)
{
OutCount=5
link(onEvent1,6169878:doCalc,[])
link(onEvent2,13995982:doCalc,[])
link(onEvent3,14187248:doCalc,[])
link(onEvent4,320369:doCalc,[])
link(onEvent5,3631491:onEvent5,[(678,321)(678,105)])
}
Add(Memory,4664687,315,112)
{
Default=Integer(0)
}
Add(GetDataEx,5686515,315,147)
{
link(Data,4664687:Value,[])
}
Add(GetDataEx,3373615,364,147)
{
Angle=3
link(Data,5686515:Var3,[])
}
Add(GetDataEx,4018831,413,147)
{
Angle=3
link(Data,3373615:Var3,[])
}
Add(MathParse,320369,553,308)
{
MathStr="(round(%1*%2)*65536 ‹ 16711680)*round(%1*%2)*65536 + (round(%1*%2)*65536 ›= 16711680)*16711680"
ResultType=0
link(onResult,3631491:Blue,[(705,314)(705,91)])
link(X1,157106:Var2,[])
link(X2,7963518:Var,[])
}
Add(MathParse,14187248,609,301)
{
MathStr="(round(%1*%2)*256‹65280)*round(%1*%2)*256 + (round(%1*%2)*256›=65280)*65280"
ResultType=0
link(onResult,3631491:Gren,[(733,307)(733,84)])
link(X1,1139134:Var2,[])
link(X2,2244010:Var,[])
}
Add(MathParse,13995982,665,294)
{
MathStr="((round(%1*%2)*256 + round(%1*%2))‹65535)*(round(%1*%2)*256 + round(%1*%2)) + ((round(%1*%2)*256 + round(%1*%2))›=65535)*65535"
ResultType=0
link(onResult,3631491:Yellow,[(761,300)(761,98)])
link(X1,14748562:Var2,[])
link(X2,5625689:Var,[])
}
Add(MathParse,6169878,721,287)
{
MathStr="((%1*%2)‹255)*%1*%2 + ((%1*%2)›=255)*255"
ResultType=0
link(onResult,3631491:Red,[(789,293)(789,77)])
link(X1,15163546:Var2,[])
link(X2,11725200:Var,[])
}
Add(LineBreak,4128823,71,35)
{
Type=1
link(Data,3631491:R,[])
Primary=[11725200,657,224]
}
Add(LineBreak,8149131,78,54)
{
Type=1
link(Data,3631491:G,[])
Primary=[2244010,538,205]
}
Add(LineBreak,10905749,85,78)
{
Type=1
link(Data,3631491:B,[])
Primary=[7963518,475,181]
}
Add(LineBreak,16316605,92,98)
{
Type=1
link(Data,3631491:Y,[])
Primary=[5625689,580,161]
}
Add(Hub,12909090,203,154)
{
OutCount=5
link(onEvent1,4090371:doClear,[(469,160)(469,202)])
link(onEvent2,10548772:doClear,[(441,167)(441,209)])
link(onEvent3,8629152:doClear,[(413,174)(413,216)])
link(onEvent4,11297584:doClear,[(517,181)(517,223)])
link(onEvent5,6905521:doFFT,[])
}
END_SDK
Add(LineBreak,4977236,210,742)
{
Color=16711680
link(Out,14017017:doWork1,[])
Primary=[565496,189,-273]
}
Add(LineBreak,4335104,217,679)
{
Color=65280
link(Out,3602490:doWork1,[])
Primary=[15672408,161,-217]
}
Add(LineBreak,14174780,217,616)
{
Color=65535
link(Out,16150945:doWork1,[])
Primary=[10244161,203,-140]
}
Add(LineBreak,4471008,217,553)
{
Color=255
link(Out,13650818:doWork1,[])
Primary=[13875248,147,-98]
}
Add(LineBreak,9770708,126,777)
{
Type=1
Color=16711680
link(Data,8318413:Text,[])
Primary=[1140039,210,-364]
}
Add(LineBreak,9654923,126,616)
{
Type=1
Color=65280
link(Data,15843884:Text,[])
Primary=[12123633,203,-217]
}
Add(LineBreak,13620308,126,539)
{
Type=1
Color=65535
link(Data,5056809:Text,[])
Primary=[13502264,217,-112]
}
Add(LineBreak,10937454,126,700)
{
Type=1
Color=255
link(Data,286085:Text,[])
Primary=[4825167,196,-315]
}
Add(Edit,15843884,126,574)
{
Top=20
Width=80
Color=65280
Text="50"
}
Add(Edit,5056809,126,497)
{
Top=40
Width=80
Color=65535
Text="50"
}
Add(Edit,8318413,126,735)
{
Top=60
Width=80
Color=16711680
Text="50"
}
Add(Edit,286085,126,658)
{
Width=80
Color=255
Text="50"
}
Add(ChildPanel,13650818,259,553)
{
}
BEGIN_SDK
Add(EditMulti,14606757,21,21)
{
EventCount=2
WorkCount=1
DataCount=1
Width=797
Height=431
link(doWork1,12335601:doEvent1,[(60,27)(60,76)])
}
Add(Panel,5415222,105,35)
{
Left=85
Width=100
Height=100
Point(doColor)
}
Add(Hub,12335601,70,70)
{
OutCount=4
link(onEvent1,5415222:doColor,[(95,76)(95,48)])
link(onEvent2,1592569:doPosition,[])
link(onEvent3,1592569:doColor,[])
link(onEvent4,13664660:doEvent1,[(161,97)(161,125)])
}
Add(ProgressBar,1592569,126,77)
{
Left=2
Top=2
Width=96
Height=5
Align=2
Max=255
ProgressColor=255
Point(doColor)
}
Add(ChangeMon,10628854,273,119)
{
link(onData,14606757:onEvent1,[(561,125)(561,27)])
}
Add(LineBreak,3852290,686,126)
{
Color=255
link(Out,14606757:onEvent2,[(767,132)(767,34)])
Primary=[5060300,-413,28]
}
Add(Hub,13664660,238,119)
{
link(onEvent1,10628854:doData,[])
link(onEvent2,5060300:In,[(266,132)(266,160)])
}
END_SDK
Add(ChildPanel,16150945,259,616)
{
}
BEGIN_SDK
Add(EditMulti,6997819,21,21)
{
EventCount=2
WorkCount=1
DataCount=3
Width=797
link(doWork1,12915409:doEvent1,[(60,27)(60,76)])
}
Add(Panel,869147,105,35)
{
Left=185
Width=100
Height=100
Point(doColor)
}
Add(Hub,12915409,70,70)
{
OutCount=4
link(onEvent1,869147:doColor,[(95,76)(95,48)])
link(onEvent2,7366405:doPosition,[])
link(onEvent3,7366405:doColor,[])
link(onEvent4,9790927:doOperation,[(150,97)(150,153)])
}
Add(ProgressBar,7366405,175,77)
{
Left=2
Top=2
Width=96
Height=5
Align=2
ParentFont=0
Max=65536
ProgressColor=65535
Point(doColor)
}
Add(Math,9790927,217,147)
{
OpType=3
Op2=256
ResultType=0
link(onResult,8996856:doEvent1,[])
}
Add(ChangeMon,8942060,287,147)
{
link(onData,6997819:onEvent1,[(569,153)(569,27)])
}
Add(LineBreak,9388863,735,56)
{
Color=65535
link(Out,6997819:onEvent2,[(791,62)(791,34)])
Primary=[9404535,-448,126]
}
Add(Hub,8996856,259,147)
{
link(onEvent1,8942060:doData,[])
link(onEvent2,9404535:In,[(280,160)(280,188)])
}
END_SDK
Add(ChildPanel,3602490,259,679)
{
}
BEGIN_SDK
Add(EditMulti,9863869,21,21)
{
EventCount=2
WorkCount=1
DataCount=2
Width=720
link(doWork1,8962210:doEvent1,[(60,27)(60,69)])
}
Add(Panel,14766402,161,28)
{
Left=85
Top=100
Width=100
Height=100
Point(doColor)
}
Add(Hub,8962210,126,63)
{
OutCount=4
link(onEvent1,14766402:doColor,[(151,69)(151,41)])
link(onEvent2,14810965:doPosition,[])
link(onEvent3,14810965:doColor,[])
link(onEvent4,2019736:doOperation,[(192,90)(192,132)])
}
Add(ProgressBar,14810965,161,70)
{
Width=130
Height=5
Align=2
Max=65536
ProgressColor=65280
Point(doColor)
}
Add(Math,2019736,245,126)
{
OpType=3
Op2=256
ResultType=0
link(onResult,11625334:doEvent1,[])
}
Add(LineBreak,2706985,581,91)
{
Color=65280
link(Out,9863869:onEvent2,[(676,97)(676,34)])
Primary=[6763441,-252,70]
}
Add(Hub,11625334,294,126)
{
link(onEvent1,9863869:onEvent1,[(524,132)(524,27)])
link(onEvent2,6763441:In,[(312,139)(312,167)])
}
END_SDK
Add(ChildPanel,14017017,259,742)
{
}
BEGIN_SDK
Add(EditMulti,234910,21,21)
{
EventCount=2
WorkCount=1
DataCount=1
Width=762
Height=417
link(doWork1,16014047:doEvent1,[(60,27)(60,76)])
}
Add(Panel,10668822,168,35)
{
Left=185
Top=100
Width=100
Height=100
Point(doColor)
}
Add(Hub,16014047,133,70)
{
OutCount=4
link(onEvent1,10668822:doColor,[(158,76)(158,48)])
link(onEvent2,8622099:doPosition,[])
link(onEvent3,8622099:doColor,[])
link(onEvent4,15611890:doOperation,[(161,97)(161,244)])
}
Add(ProgressBar,8622099,196,77)
{
Width=130
Height=5
Align=2
Max=16711680
ProgressColor=16711680
Point(doColor)
}
Add(LineBreak,14619273,707,35)
{
Color=16711680
link(Out,234910:onEvent2,[(760,41)(760,34)])
Primary=[5922735,-441,224]
}
Add(Hub,11871167,217,224)
{
link(onEvent1,234910:onEvent1,[(507,230)(507,27)])
link(onEvent2,5922735:In,[(249,237)(249,265)])
}
Add(Math,15611890,175,238)
{
OpType=3
Op2=67000
ResultType=0
link(onResult,11871167:doEvent1,[(212,244)(212,230)])
}
END_SDK
Add(InfoTip,12264274,189,511)
{
Info=#23:Преобразователь в числа|
Width=246
Height=277
}
Add(ComboBox,12151437,210,210)
{
Top=80
Width=80
Height=21
Point(onSelect)
Point(doSelect)
link(onClick,5969461:doInit,[])
}
Add(BASS_RecordCenter,5969461,280,217)
{
link(onInit,8276871:doStart,[])
link(onError,10640461:doString,[])
}
Add(BASS_RecordDevices,7159817,154,210)
{
link(onEnum,12151437:doAdd,[])
}
Add(Message,11364135,392,224)
{
Caption="Error!"
Icon=1
link(Message,10640461:FString,[(398,212)(366,212)(366,268)(335,268)])
}
Add(FormatStr,10640461,329,224)
{
DataCount=1
Mask="Внимание\r\nИнициализировать устройство записи не удалось\r\nКод ошибки: %1"
Point(FString)
link(onFString,11364135:doMessage,[])
}
Add(LineBreak,13601044,455,154)
{
link(Out,9715200:doSumm,[])
Primary=[4332296,77,70]
}
Add(Button,1867654,210,455)
{
Left=10
Top=115
Caption="+"
link(onClick,4752826:doTimer,[])
}
Add(SoundBuffer,1330680,588,154)
{
Size=0
}
Add(Button,13529505,210,462)
{
Left=10
Top=135
Caption="-"
link(onClick,4752826:doStop,[])
}
Add(BASS_ChannelPlay,5990025,693,217)
{
Channel="123"
link(onPlay,13176540:doAttribute,[])
}
Add(BASS_ChannelAttribute,13176540,756,217)
{
Channel="123"
Attrib=1
link(Value,8040976:Value,[])
}
Add(Memory,8040976,756,147)
{
Default=Integer(0)
}
Add(MMTimer,4752826,273,455)
{
Interval=50
Enable=1
link(onTimer,2558874:Launch,[])
}
Этот блок был "выдран" из основной программы, так что там есть лишние точки
карма: 0
私はアニメが大好き
0
Ответов: 43
Рейтинг: -2
#2: 2018-04-11 21:16:15 ЛС | профиль | цитата
dimosikILA, ради спортивного интереса склепал сегодня , прикрепил http://forum.hiasm.com/getfile/38341

p.s по идее нужно порог чувствительности добавить для каждого канала...

Редактировалось 2 раз(а), последний 2018-04-11 22:05:34
карма: -2

0
Ответов: 140
Рейтинг: 2
#3: 2018-04-12 14:41:29 ЛС | профиль | цитата
Спасибо
Только вот не хватает "регулировки канала"
Вот там где курсор
Порой в музыке очень много "зелёного" и "синего" и это желательно регулировать
Так же мне интересно, Delphi похож на питон?
карма: 0
私はアニメが大好き
0
Ответов: 43
Рейтинг: -2
#4: 2018-04-12 16:05:59 ЛС | профиль | цитата
dimosikILA, мне тоже эта мигалка не очень понравилась, по этому сегодня немного доработал.
т.е сейчас диапазон любого фильтра расширяем (с выбором максимальной амплитуды)и сейчас более осознано мигает
dimosikILA писал(а):
Порой в музыке очень много "зелёного" и "синего" и это желательно регулировать

это тоже легко доработать.
dimosikILA писал(а):
Так же мне интересно, Delphi похож на питон?

По мне так лучшее враг хорошему и всё это от Лукавого
карма: -2

0
Ответов: 140
Рейтинг: 2
#5: 2018-04-12 18:29:26 ЛС | профиль | цитата
Можно ссылку на обнову? )))
карма: 0
私はアニメが大好き
0
Ответов: 43
Рейтинг: -2
#6: 2018-04-12 19:28:02 ЛС | профиль | цитата
dimosikILA, ini и pas файлы замени
прикрепил http://forum.hiasm.com/getfile/38343

--- Добавлено в 2018-04-12 19:31:49

dimosikILA, кстати с тебя иконка

--- Добавлено в 2018-04-12 19:44:47

Редактировалось 3 раз(а), последний 2018-04-12 19:45:22
карма: -2

0
Ответов: 140
Рейтинг: 2
#7: 2018-04-12 19:51:02 ЛС | профиль | цитата
принял
если мне память не изменяет то 16 на 16 пикселей
карма: 0
私はアニメが大好き
0
Ответов: 43
Рейтинг: -2
#8: 2018-04-13 11:24:46 ЛС | профиль | цитата
dimosikILA писал(а):
принял
замётано
добавил твои регулировки о которых ты просил, пробуй

_scr_.png

з.ы в понедельник на работу после отпуска так что если что нужно оперативно поправить поправлю а на неделе уже никак...

Редактировалось 3 раз(а), последний 2018-04-13 13:51:25
карма: -2

0
Ответов: 43
Рейтинг: -2
#9: 2018-04-13 13:51:37 ЛС | профиль | цитата
поправил ошибку, теперь регулировка хорошо работает

Редактировалось 1 раз(а), последний 2018-04-13 13:53:31
карма: -2

0
Ответов: 140
Рейтинг: 2
#10: 2018-04-13 15:40:22 ЛС | профиль | цитата
Большое спасибо!
Буду тестить!
(Иконку попробую сделать, рисовать я так и не научился, но всё ровно попробую)
карма: 0
私はアニメが大好き
0
Ответов: 140
Рейтинг: 2
#11: 2018-04-15 13:05:07 ЛС | профиль | цитата
Баг ли это?

Такая фигня происходит если Stream идёт с Микшера Винды( так пашет у меня цветомузыка)
Даже если я полностью отключу звук в системе, всё-ровно так, однако если запускать Stream из файла то такого нет
карма: 0
私はアニメが大好き
0
Ответов: 8926
Рейтинг: 823
#12: 2018-04-16 12:40:20 ЛС | профиль | цитата
dimosikILA, ох блин, ну вот ещё повод для раздумий (а вообще-то нужно это мигание, и называется-ли это "цветомузыкой" à la Scriabine)
http://forum.hiasm.com/getfile/38346

Редактировалось 1 раз(а), последний 2018-04-16 12:46:13
карма: 19

0
Ответов: 140
Рейтинг: 2
#13: 2018-04-17 13:28:04 ЛС | профиль | цитата
Ох, сложновато
карма: 0
私はアニメが大好き
0
Ответов: 43
Рейтинг: -2
#14: 2018-04-29 22:24:13 ЛС | профиль | цитата
dimosikILA, и где обещанная иконка (хоть рисовать не умеешь так хоть бы нашёл подходящую)
Леонид писал(а):
dimosikILA, ох блин, ну вот ещё повод для раздумий

Леонид, у него раздумья ещё с прошлого года были -> http://forum.hiasm.com/topic/66740
карма: -2

0
Ответов: 495
Рейтинг: 163
#15: 2018-04-29 22:52:20 ЛС | профиль | цитата
Добрый вечер, в своих архивах наткнулся на эксперименты аля цвето-свето-музыка... может кому интересно будет...

Add(MainForm,2953706,119,63)
{
Width=1113
Height=540
Caption="GL_MP3"
BorderStyle=0
WindowsState=2
Point(onKeyDown)
Point(onResize)
Point(Handle)
Point(doWidth)
Point(doHeight)
link(onCreate,16299401:doEvent1,[(173,83)(173,146)])
link(onKeyDown,5548095:doWork2,[(275,90)(275,153)])
link(onResize,15596148:doWork1,[(228,97)])
}
Add(GL_Main,12986311,287,147)
{
Color=0
TwoSide=0
AASamples=1
AALevel=2
link(onInit,10452138:doWork1,[])
link(onViewPort,3410847:doPerspective,[(329,160)(329,209)(33,209)(33,244)])
link(Handle,14536267:Var2,[])
}
Add(Timer,9506849,238,224)
{
Interval=20
Enable=1
link(onTimer,1049454:doEvent1,[])
}
Add(GL_GTools,771925,343,224)
{
Point(doClear)
Point(doPushMatrix)
Point(doPopMatrix)
}
Add(Hub,1049454,294,224)
{
OutCount=5
link(onEvent1,771925:doClear,[])
link(onEvent2,771925:doPushMatrix,[])
link(onEvent3,5548095:doWork3,[(319,244)(319,217)(393,217)(393,160)])
link(onEvent4,771925:doPopMatrix,[(333,251)(333,244)])
link(onEvent5,12986311:doFlip,[(317,258)(317,271)(277,271)(277,167)])
}
Add(Hub,16299401,196,140)
{
OutCount=6
link(onEvent1,5548095:doWork1,[])
link(onEvent2,12986311:doInit,[])
link(onEvent3,15596148:doWork2,[])
link(onEvent4,9506849:doTimer,[(229,167)(229,230)])
link(onEvent5,12144461:doWork1,[(222,174)(222,192)(33,192)(33,97)])
}
Add(GL_Perspective,3410847,42,238)
{
Fovy=30
link(onPerspective,14816504:doEvent1,[])
link(Aspect,12144461:Var1,[])
}
Add(MultiElement,12144461,42,91)
{
link(onEvent1,2953706:doWidth,[])
link(onEvent2,2953706:doHeight,[])
}
BEGIN_SDK
Add(EditMulti,14495888,7,7)
{
EventCount=2
WorkCount=1
VarCount=1
Width=185
VOffset=35
HOffset=112
link(doWork1,9938436:doEvent1,[])
link(Var1,8872951:Result,[])
}
Add(Screen,7951566,70,28)
{
EnumMask="%v"
}
Add(Hub,9938436,21,42)
{
OutCount=4
link(onEvent2,1329470:doData,[(55,55)(55,76)])
link(onEvent3,400462:doData,[(49,62)(49,118)])
link(onEvent4,8872951:doOperation,[(41,69)(41,160)])
}
Add(Memory,8277205,119,70)
{
link(onData,14495888:onEvent1,[(160,76)(160,48)])
}
Add(Memory,16143879,126,112)
{
link(onData,14495888:onEvent2,[(169,118)(169,55)])
}
Add(Math,8872951,119,154)
{
OpType=3
link(Op1,8277205:Value,[])
link(Op2,16143879:Value,[])
}
Add(DoData,400462,77,112)
{
link(onEventData,16143879:doValue,[])
link(Data,7951566:Height,[])
}
Add(DoData,1329470,70,70)
{
link(onEventData,8277205:doValue,[])
link(Data,7951566:Width,[])
}
END_SDK
Add(HubEx,15596148,224,154)
{
link(onEvent,12986311:doViewPort,[])
}
Add(MouseEvent,12098582,182,224)
{
Point(doVisible)
}
Add(DoData,3029165,126,238)
{
Data=Integer(0)
link(onEventData,12098582:doVisible,[])
}
Add(MultiElement,5548095,406,140)
{
@Hint=#3:mp3|
link(onEvent1,1681317:doEvent1,[])
link(Data1,14536267:Var3,[(412,130)])
link(Data2,12986311:GLHandle,[(419,124)(343,124)(343,197)(293,197)])
link(Data3,8166211:Bitmap,[])
AddHint(15,44,35,13,@Hint)
}
BEGIN_SDK
Add(EditMulti,16204375,21,21)
{
EventCount=1
WorkCount=5
DataCount=3
Width=1224
Height=711
VOffset=56
HOffset=35
link(doWork1,1978043:doEvent1,[])
link(doWork2,5589467:doGetIndex,[(32,90)(32,265)])
link(doWork3,1520515:doEvent1,[(43,97)(43,349)])
link(doWork4,16410828:In,[(26,104)(26,132)])
link(doWork5,537950:doDraw,[(54,111)(54,160)])
}
Add(BASS_Init,4252681,91,77)
{
link(onInit,10183901:doCheck,[])
link(onError,11232751:doMessage,[])
link(Handle,16204375:Data1,[(111,68)(62,68)])
}
Add(BASS_Version,10183901,175,77)
{
link(onCheckOk,45706:doSearch,[])
link(onCheckFailed,109118:doMessage,[])
}
Add(Message,11232751,133,84)
{
Message="Error BASS initialization"
Caption="Error"
Icon=1
}
Add(Message,109118,217,84)
{
Message="Incorrect version of BASS library "
Caption="Error"
Icon=1
}
Add(FileSearch,45706,266,77)
{
Ext="*mp3"
Dir="C:\"
link(onSearch,10759106:doAdd,[])
link(onEndSearch,7203130:doCompare,[(310,90)(310,118)(254,118)(254,132)])
link(Dir,9542965:CurrentDir,[])
}
Add(Dir,9542965,273,28)
{
}
Add(If_else,7203130,266,126)
{
Type=2
Op2=Integer(0)
link(onTrue,12613014:doEvent1,[])
link(onFalse,5839242:doReset,[(307,139)(307,169)(221,169)(221,188)])
link(Op1,45706:Count,[])
}
Add(StrList,10759106,483,77)
{
Point(String)
Point(doGetString)
Point(onGetString)
link(onGetString,986036:doStart,[])
}
Add(BASS_StreamCreateFile,2807095,574,84)
{
Name="MainSound"
link(onCreate,2750554:doEvent1,[])
link(onEndPlay,12359603:doEvent3,[(614,97)(614,165)(341,165)(341,153)])
link(onError,13951091:doStrCat,[])
link(FileName,10759106:String,[(580,75)(566,75)(566,138)(510,138)])
}
Add(BASS_ChannelPlay,10898554,686,49)
{
Channel="MainSound"
}
Add(CounterEx,3666049,427,119)
{
Max=1
Default=-1
Point(doMax)
Point(doPrev)
link(onNext,10759106:doGetString,[])
}
Add(Hub,12613014,315,126)
{
link(onEvent1,1495930:doOperation,[(339,132)(339,97)])
link(onEvent2,12359603:doEvent1,[])
}
Add(Thread,986036,525,84)
{
Delay=1
FastStop=0
link(onExec,2807095:doCreate,[])
}
Add(Message,12393418,735,98)
{
Caption="Error"
Icon=1
}
Add(StrCat,13951091,686,98)
{
Str1="Error opening file name: "
link(onStrCat,12393418:doMessage,[])
}
Add(Math,1495930,350,91)
{
OpType=1
Op2=1
link(onResult,3666049:doMax,[(404,97)(404,132)])
}
Add(StrList,5589467,105,217)
{
Strings=#2:27|2:37|2:39|2:32|3:112|3:113|
Point(onGetIndex)
Point(doGetIndex)
link(onGetIndex,16576598:doEvent,[])
}
Add(IndexToChanel,11093266,280,231)
{
Count=6
link(onEvent1,14363644:doWork3,[(326,237)])
link(onEvent2,9057206:doEvent1,[])
link(onEvent3,12359603:doEvent2,[(333,251)(333,146)])
link(onEvent4,212817:doSwitch,[])
link(onEvent5,13297057:doSwitch,[(486,265)(486,314)])
link(onEvent6,4196477:doSwitch,[])
}
Add(Switch,5839242,231,175)
{
DataOn=Integer(1)
DataOff=Integer(0)
Default=0
Point(State)
}
Add(IndexToChanel,16576598,231,224)
{
Point(Index)
link(onEvent1,14363644:doWork2,[(277,230)(277,216)])
link(onEvent2,11093266:doEvent,[])
link(Index,16133713:Var2,[])
}
Add(HubEx,14363644,322,210)
{
link(onEvent,16204375:onEvent1,[(781,216)(781,83)])
}
Add(BASS_ChannelPause,2796307,665,252)
{
Channel="MainSound"
}
Add(Switch,212817,497,252)
{
DataOn=Integer(1)
DataOff=Integer(0)
Default=0
Point(State)
link(onSwitch,15905374:doEvent1,[])
}
Add(IndexToChanel,2464971,581,252)
{
link(onEvent1,2796307:doPause,[])
link(onEvent2,5793706:doWork3,[(669,265)])
}
Add(HubEx,5793706,665,84)
{
Angle=3
link(onEvent,10898554:doPlay,[(669,55)])
}
Add(Hub,12359603,350,133)
{
InCount=3
link(onEvent1,3666049:doNext,[(396,139)(396,125)])
link(onEvent2,159600:doEvent1,[(372,146)(372,181)])
}
Add(Hub,1978043,49,77)
{
OutCount=3
link(onEvent1,4252681:doInit,[])
link(onEvent2,2570646:doData,[(90,90)(90,419)])
}
Add(IndexToChanel,15485083,154,343)
{
Point(Index)
link(onEvent1,7725663:doWork2,[])
link(onEvent2,13126806:doEvent1,[])
link(Index,10703582:Var2,[])
}
Add(GetDataEx,16133713,231,210)
{
link(Data,5839242:State,[])
}
Add(Hub,13126806,210,350)
{
OutCount=4
link(onEvent1,3055294:doWork1,[])
link(onEvent3,7725663:doWork3,[(249,370)])
link(onEvent4,16757372:doFftVis,[(259,377)(259,426)])
}
Add(HubEx,7725663,245,343)
{
link(onEvent,5449182:doEvent,[])
}
Add(MultiElement,881688,602,455)
{
@Hint=#2:GL|
link(Data1,4196477:State,[(608,396)(370,396)])
AddHint(-5,40,29,13,@Hint)
}
BEGIN_SDK
Add(EditMulti,1336075,21,21)
{
EventCount=1
WorkCount=4
DataCount=1
Width=1028
Height=697
link(doWork1,6263480:doValue,[(64,27)(64,104)])
link(doWork2,15387273:doOperation,[(57,34)(57,258)])
link(doWork3,8838228:doOperation,[(50,41)(50,391)])
link(doWork4,7696927:doFor,[(42,48)(42,587)])
}
Add(Math,15387273,70,252)
{
OpType=3
Op2=100
link(onResult,7129855:doOperation,[])
}
Add(GL_GTools,14750866,252,252)
{
ClearDepth=1
ClearStencil=1
Point(doPushMatrix)
link(onEvent,3228324:doTranslate,[])
}
Add(GL_Color,5914196,210,252)
{
Color=65280
link(onColor,14750866:doPushMatrix,[])
link(Color,10191400:Value,[])
}
Add(Gl_Scale,8867302,336,252)
{
link(onScale,9051005:doEvent,[])
link(X,10155948:Var2,[])
link(Y,7445429:Var2,[])
link(Z,7445429:Var3,[(356,234)])
}
Add(GetDataEx,10155948,336,229)
{
link(Data,15387273:Result,[(342,219)(111,219)(111,300)(76,300)])
}
Add(Math,8838228,77,385)
{
OpType=3
Op2=100
link(onResult,6224992:doColor,[])
}
Add(GL_GTools,10812304,175,385)
{
ClearDepth=1
ClearStencil=1
Point(doPushMatrix)
link(onEvent,2910035:doTranslate,[])
}
Add(GL_Color,6224992,133,385)
{
Color=0
link(onColor,10812304:doPushMatrix,[])
link(Color,7910326:Value,[])
}
Add(Gl_Scale,11576700,266,385)
{
link(onScale,8740498:doEvent,[])
link(X,1995180:Var2,[])
link(Y,13151770:Var2,[])
link(Z,13151770:Var3,[(286,367)])
}
Add(GetDataEx,1995180,266,362)
{
link(Data,11380246:Var1,[(272,358)(258,358)])
}
Add(Math,14920756,126,98)
{
OpType=3
Op2=50
link(onResult,11529916:doOperation,[])
}
Add(GL_GTools,16365939,266,98)
{
ClearDepth=1
ClearStencil=1
Point(doPushMatrix)
link(onEvent,15079471:doScale,[])
}
Add(GL_GTools,11411916,546,98)
{
ClearDepth=1
ClearStencil=1
Point(doPopMatrix)
}
Add(GL_Color,309751,224,98)
{
Color=255
link(onColor,16365939:doPushMatrix,[])
}
Add(Gl_Scale,15079471,315,98)
{
link(onScale,13719273:doEvent,[])
link(X,5990190:Var2,[])
link(Y,11333850:Var2,[])
link(Z,11333850:Var3,[(335,82)])
}
Add(GetDataEx,5990190,315,77)
{
link(Data,14920756:Result,[(321,69)(169,69)(169,140)(132,140)])
}
Add(Math,8103173,168,252)
{
OpType=39
Op2=0.05
link(onResult,5914196:doColor,[])
}
Add(Random,1790261,245,588)
{
Max=8
link(onRandom,12852871:doRead,[])
}
Add(For,7696927,105,581)
{
Start=1
End=120
link(onEvent,8170245:doEvent1,[])
}
Add(Gl_Translate,9452183,805,588)
{
link(onTranslate,727959:doScale,[])
link(Y,2872587:Result,[(818,576)(794,576)(794,634)(748,634)])
}
Add(GL_GTools,2108774,980,588)
{
Point(doPopMatrix)
link(onEvent,1336075:onEvent1,[(1019,594)(1019,27)])
}
Add(GL_GTools,1959346,392,588)
{
Point(doPushMatrix)
link(onEvent,16548777:doEvent1,[])
}
Add(GL_Rotate,2323075,644,588)
{
Z=-1
link(onRotate,5490401:doRotate,[])
link(Z,11380246:Var3,[(671,475)])
}
Add(Math,8170371,203,588)
{
OpType=3
Op2=80
link(onResult,1790261:doRandom,[])
}
Add(Counter,5646432,469,588)
{
Max=2560000
link(onNext,11230136:doOperation,[])
}
Add(Math,11230136,511,588)
{
OpType=2
link(onResult,3214400:doOperation,[])
link(Op2,7696927:Position,[(524,570)(383,570)(383,646)(111,646)])
}
Add(Math,3214400,553,588)
{
OpType=3
Op2=600
link(onResult,12636373:doOperation,[])
}
Add(Math,2872587,742,588)
{
link(onResult,9452183:doTranslate,[])
link(Op1,8170371:Result,[(748,560)(190,560)(190,630)(209,630)])
link(Op2,11529916:Result,[(755,196)(181,196)])
}
Add(Math,11529916,175,98)
{
OpType=3
Op2=2
link(onResult,309751:doColor,[])
}
Add(GL_Color,4743292,336,588)
{
Color=65280
link(onColor,1959346:doPushMatrix,[])
link(Color,12852871:Item,[(342,576)(328,576)(328,636)(293,636)])
}
Add(StrList,8669957,273,504)
{
Strings=#3:255|7:4227072|7:8388608|5:65535|8:16744703|5:65408|8:16776960|5:33023|5:32896|
}
Add(ArrayRW,12852871,287,588)
{
link(onRead,4743292:doColor,[])
link(Array,8669957:Array,[])
}
Add(GL_Rotate,5490401,700,588)
{
Y=1
link(onRotate,2872587:doOperation,[])
link(Angle,7306035:Result,[(706,576)(688,576)(688,693)(601,693)])
}
Add(Counter,2657812,511,651)
{
Min=-360
Max=360
link(onNext,13984109:doOperation,[])
}
Add(Hub,16548777,434,588)
{
link(onEvent1,5646432:doNext,[])
link(onEvent2,15015923:doNext,[(458,601)(458,650)])
}
Add(Math,13984109,553,651)
{
OpType=13
link(onResult,7306035:doOperation,[])
}
Add(Math,7306035,595,651)
{
OpType=2
Op2=10
}
Add(Math,12636373,595,588)
{
link(onResult,2323075:doRotate,[])
link(Op2,6263480:Value,[(608,203)(83,203)])
}
Add(Memory,6263480,77,98)
{
link(onData,14920756:doOperation,[])
}
Add(Gl_Scale,727959,847,588)
{
link(onScale,1715377:doDraw,[])
link(X,13643012:Var1,[(853,551)])
link(Y,1719495:Var2,[])
link(Z,1719495:Var3,[(867,572)])
}
Add(GetDataEx,1719495,854,567)
{
link(Data,13643012:Var2,[])
}
Add(GetDataEx,13643012,854,546)
{
link(Data,8103173:Result,[(860,348)(174,348)])
}
Add(GetDataEx,11380246,252,470)
{
Angle=3
link(Data,8838228:Result,[(83,475)])
}
Add(Timer,438701,770,406)
{
Interval=7000
link(onTimer,10289447:doNext,[])
}
Add(StrList,10342750,875,350)
{
Strings=#1:6|1:4|1:6|2:20|
}
Add(ArrayRW,6085706,889,406)
{
link(onRead,13101390:doValue,[])
link(Array,10342750:Array,[])
}
Add(Counter,10289447,819,406)
{
Max=4
Default=1
link(onNext,6085706:doRead,[])
}
Add(Memory,13101390,931,406)
{
Default=Integer(4)
}
Add(Hub,8170245,147,581)
{
link(onEvent1,7771741:doOperation,[(176,587)(176,489)])
link(onEvent2,8170371:doOperation,[])
}
Add(Math,15793393,924,483)
{
OpType=3
Op2=200
}
Add(Math,7771741,875,483)
{
Op2=50
link(onResult,15793393:doOperation,[])
}
Add(GL_Torus,13758151,441,154)
{
inRadius=0.8
Sides=4
Point(Rings)
link(onDraw,11901696:doWork2,[])
link(Rings,8052033:Var1,[(461,142)])
}
Add(GetDataEx,11852423,931,455)
{
link(Data,13101390:Value,[])
}
Add(Memory,10191400,210,203)
{
Default=Integer(65280)
}
Add(CounterEx,15015923,469,644)
{
Max=2
Point(onThroughMax)
link(onThroughMax,2657812:doNext,[])
}
Add(GL_Torus,1947456,448,434)
{
inRadius=0.8
Sides=4
Point(Rings)
link(onDraw,3395693:doWork3,[(522,440)])
link(Rings,8900105:Var2,[(468,425)(503,425)])
}
Add(GL_Torus,3308690,441,308)
{
inRadius=0.8
Sides=4
Point(Rings)
link(onDraw,6584888:doWork2,[])
link(Rings,8900105:Var1,[(461,299)])
}
Add(HubEx,7557362,518,98)
{
link(onEvent,11411916:doPopMatrix,[])
}
Add(HubEx,14509988,518,252)
{
Angle=3
link(onEvent,11901696:doWork3,[])
}
Add(GetDataEx,8052033,497,137)
{
Angle=1
link(Data,11852423:Var1,[(990,142)(990,460)])
}
Add(GetDataEx,8900105,497,294)
{
link(Data,8052033:Var2,[])
}
Add(Gl_Translate,3228324,294,252)
{
X=-2
link(onTranslate,8867302:doScale,[])
}
Add(Gl_Translate,2910035,217,385)
{
X=2
link(onTranslate,11576700:doScale,[])
}
Add(Math,7129855,119,252)
{
OpType=3
Op2=3
link(onResult,8103173:doOperation,[])
}
Add(GL_Torus,1715377,917,588)
{
inRadius=0.1
Sides=4
Point(Rings)
link(onDraw,2108774:doPopMatrix,[])
link(outRadius,15793393:Result,[])
link(Rings,11852423:Var2,[])
}
Add(MultiElement,8166123,441,252)
{
@Hint=#6:цветок|
link(onEvent1,14509988:doWork2,[])
AddHint(98,7,50,13,@Hint)
}
BEGIN_SDK
Add(EditMulti,5407142,21,21)
{
EventCount=1
WorkCount=1
Width=496
Height=221
link(doWork1,5463219:doNext,[(28,27)(28,139)])
}
Add(GL_Disk,15215737,427,133)
{
OutRadius=1
Stacks=1
link(onDraw,6830916:doPopMatrix,[])
}
Add(Gl_Scale,8795202,378,133)
{
X=1
Y=0.3
Z=1
link(onScale,15215737:doDraw,[])
}
Add(GL_Rotate,13790904,280,133)
{
Angle=30
Z=1
link(onRotate,2769381:doTranslate,[])
link(Angle,6632907:Position,[(286,121)(220,121)(220,179)(181,179)])
}
Add(For,6632907,175,133)
{
Start=1
End=360
Step=30
link(onEvent,15686953:doPushMatrix,[])
link(onStop,5407142:onEvent1,[(212,146)(212,27)])
}
Add(GL_GTools,15686953,231,133)
{
Point(doPushMatrix)
link(onEvent,13790904:doRotate,[])
}
Add(GL_GTools,6830916,469,133)
{
Point(doPopMatrix)
}
Add(Gl_Translate,2769381,329,133)
{
X=1.5
link(onTranslate,8795202:doScale,[])
}
Add(CounterEx,5463219,35,133)
{
Min=1
Max=360
Direct=1
Default=1
link(onNext,14742743:doData,[])
}
Add(GL_Rotate,4806499,126,133)
{
Z=1
link(onRotate,6632907:doFor,[])
link(Angle,5463219:Count,[(132,121)(78,121)(78,178)(41,178)])
}
Add(DoData,14742743,84,133)
{
link(onEventData,4806499:doRotate,[])
}
END_SDK
Add(MultiElement,15488626,448,385)
{
@Hint=#6:звезда|
link(onEvent1,3395693:doWork2,[])
AddHint(88,8,51,13,@Hint)
}
BEGIN_SDK
Add(EditMulti,8734784,21,21)
{
EventCount=1
WorkCount=1
Width=622
Height=235
link(doWork1,13217836:doNext,[(53,27)(53,104)])
}
Add(GL_Disk,8499413,511,98)
{
OutRadius=2
Slices=3
Stacks=1
link(onDraw,12645910:doPopMatrix,[])
}
Add(GL_Rotate,14683497,364,98)
{
Angle=30
Z=1
link(onRotate,691987:doTranslate,[])
link(Angle,9784913:Position,[(370,86)(351,86)(351,146)(251,146)])
}
Add(For,9784913,245,98)
{
Start=1
End=360
Step=72
link(onEvent,14211161:doPushMatrix,[])
link(onStop,8734784:onEvent1,[(312,111)(312,27)])
}
Add(GL_GTools,14211161,308,98)
{
Point(doPushMatrix)
link(onEvent,14683497:doRotate,[])
}
Add(GL_GTools,12645910,553,98)
{
Point(doPopMatrix)
}
Add(Gl_Translate,691987,413,98)
{
X=1.5
link(onTranslate,16222803:doRotate,[])
}
Add(GL_Rotate,16222803,462,98)
{
Angle=-90
Z=1
link(onRotate,8499413:doDraw,[])
}
Add(CounterEx,13217836,84,98)
{
Min=1
Max=360
Default=1
link(onNext,1491053:doData,[])
}
Add(GL_Rotate,6091065,175,98)
{
Z=1
link(onRotate,9784913:doFor,[])
link(Angle,13217836:Count,[(181,86)(127,86)(127,143)(90,143)])
}
Add(DoData,1491053,133,98)
{
link(onEventData,6091065:doRotate,[])
}
END_SDK
Add(IndexToChanel,13719273,385,98)
{
Point(Index)
link(onEvent1,1264861:doWork1,[])
link(onEvent2,13758151:doDraw,[(429,111)(429,160)])
link(Index,1923128:Var3,[(391,82)])
}
Add(IndexToChanel,9051005,392,252)
{
Point(Index)
link(onEvent1,8166123:doWork1,[])
link(onEvent2,3308690:doDraw,[(436,265)(436,314)])
link(Index,16734065:Var3,[(398,243)])
}
Add(IndexToChanel,8740498,371,385)
{
Point(Index)
link(onEvent1,15488626:doWork1,[])
link(onEvent2,1947456:doDraw,[(429,398)(429,440)])
link(Index,16734065:Var2,[])
}
Add(HubEx,11901696,518,154)
{
Angle=3
link(onEvent,7557362:doWork3,[])
}
Add(HubEx,6584888,518,308)
{
Angle=3
link(onEvent,14509988:doWork3,[])
}
Add(GetDataEx,7445429,343,229)
{
Angle=3
link(Data,10155948:Var3,[])
}
Add(GetDataEx,13151770,273,362)
{
Angle=3
link(Data,1995180:Var3,[])
}
Add(GetDataEx,11333850,322,77)
{
Angle=3
link(Data,5990190:Var3,[])
}
Add(HubEx,3395693,518,385)
{
Angle=3
link(onEvent,6584888:doWork3,[])
}
Add(GetDataEx,16734065,371,238)
{
link(Data,1923128:Var2,[])
}
Add(GetDataEx,1923128,371,77)
{
link(Data,1336075:Data1,[(377,62)(27,62)])
}
Add(MultiElement,1264861,441,98)
{
@Hint=#8:сердечко|
link(onEvent1,7557362:doWork2,[])
AddHint(-17,-28,62,13,@Hint)
}
BEGIN_SDK
Add(EditMulti,15739475,21,21)
{
EventCount=1
WorkCount=1
Width=356
Height=74
link(doWork1,796781:doTranslate,[(45,27)(45,41)])
}
Add(GL_Torus,4062010,112,35)
{
inRadius=1
Sides=4
Rings=20
Point(Rings)
link(onDraw,1742701:doTranslate,[])
}
Add(GL_Torus,15266833,210,35)
{
inRadius=1
Sides=4
Rings=20
Point(Rings)
link(onDraw,15990621:doTranslate,[])
}
Add(GL_Torus,11126901,308,35)
{
inRadius=1.4
outRadius=1.4
Sides=4
Rings=4
Point(Rings)
link(onDraw,15739475:onEvent1,[(358,41)(358,27)])
}
Add(Gl_Translate,1742701,161,35)
{
X=3
link(onTranslate,15266833:doDraw,[])
}
Add(Gl_Translate,15990621,259,35)
{
X=-1.5
Y=-1.5
link(onTranslate,11126901:doDraw,[])
}
Add(Gl_Translate,796781,70,35)
{
X=-1.5
link(onTranslate,4062010:doDraw,[])
}
END_SDK
Add(Memory,7910326,133,336)
{
Default=Integer(16711680)
}
END_SDK
Add(BASS_FFT_2048_Vis,16757372,294,406)
{
SoundStream="MainSound"
IndexMin=1
IndexMax=3
link(onIndFreq,11803735:doValue,[])
link(onAmpl,14219744:doOperation,[])
}
Add(Memory,11803735,406,406)
{
}
Add(IndexToChanel,11162301,406,455)
{
Count=3
Point(Index)
link(onEvent1,9683990:doValue,[])
link(onEvent2,881688:doWork2,[])
link(onEvent3,881688:doWork3,[])
link(Index,11803735:Value,[])
}
Add(Math,14219744,343,413)
{
OpType=2
Op2=40
link(onResult,11162301:doEvent,[(391,419)(391,461)])
}
Add(DoData,2570646,203,413)
{
Data=String(1;14;162;700)
link(onEventData,16757372:doStrFreqSeparation,[])
}
Add(MultiElement,3055294,294,350)
{
@Hint=#6:Звёзды|
AddHint(-18,-35,54,13,@Hint)
}
BEGIN_SDK
Add(EditMulti,2757215,28,35)
{
EventCount=1
WorkCount=1
Width=524
Height=179
VOffset=21
link(doWork1,9307230:doPointSize,[(60,62)(60,104)])
}
Add(Gl_Particles,5834280,360,91)
{
ColorStart=16776960
ColorEnd=8388608
Shape=3
Param1=3
Param2=3
Speed=0.01
Count=3
Point(doGY)
Point(doGX)
link(onDraw,12289736:doLineSize,[])
}
Add(Gl_Particles,16438068,458,91)
{
ColorStart=16777215
ColorEnd=8388608
Shape=3
Param1=3
Param2=3
GZ=-0.01
LifeTime=100
Speed=0.01
Count=2
link(onDraw,2757215:onEvent1,[(521,97)(521,62)])
}
Add(GL_PrimSizes,9307230,73,91)
{
Size=2
link(onSize,6941065:doNext,[])
}
Add(CounterEx,7358414,189,119)
{
Min=1
Max=360
link(onNext,8218365:doEvent1,[])
}
Add(MathParse,1350051,280,119)
{
DataCount=1
MathStr="(sin(%1)*360)/1000000"
AngleMode=1
link(onResult,5834280:doGY,[(319,125)(319,104)])
}
Add(MathParse,3058614,280,154)
{
DataCount=1
MathStr="(cos(%1)*360)/1000000"
AngleMode=1
link(onResult,5834280:doGX,[(326,160)(326,111)])
}
Add(Hub,8218365,238,119)
{
OutCount=3
link(onEvent1,1350051:doCalc,[])
link(onEvent2,3058614:doCalc,[(270,132)(270,160)])
}
Add(CounterEx,6941065,126,91)
{
Min=1
Max=2
Point(onThroughMax)
link(onNext,5834280:doDraw,[])
link(onThroughMax,7358414:doNext,[(179,104)(179,125)])
}
Add(GL_PrimSizes,12289736,409,91)
{
link(onSize,16438068:doDraw,[])
}
END_SDK
Add(MultiElement,7678669,427,343)
{
@Hint=#6:строка|0:|
@Color=16755285
link(onEvent1,6370009:doWork1,[(472,349)])
link(Data1,12564806:Result,[])
link(Data2,10759106:Count,[(440,228)(496,228)])
link(Data3,16631735:Value,[(447,335)(748,335)])
link(Data4,5674244:Var,[])
AddHint(121,12,50,26,@Hint)
}
BEGIN_SDK
Add(EditMulti,1083177,21,21)
{
EventCount=1
WorkCount=2
DataCount=4
Width=1112
Height=634
VOffset=35
HOffset=300
link(doWork2,5379650:doConvert,[(129,69)(129,153)])
}
Add(Gl_Translate,16003171,756,455)
{
link(onTranslate,15021713:doDraw,[])
link(X,1316515:NumSubStr,[])
link(Y,1092038:Index,[(769,394)(720,394)])
}
Add(GL_GTools,2169178,714,455)
{
Point(doPushMatrix)
link(onEvent,16003171:doTranslate,[])
}
Add(IndexToChanel,1834062,805,336)
{
link(onEvent2,2169178:doPushMatrix,[(849,349)(849,405)(702,405)(702,461)])
}
Add(ArrayEnum,1092038,707,336)
{
Type=1
link(onItem,1316515:doEnum,[])
link(onEndEnum,7953492:doTranslate,[(746,349)(746,293)])
link(Array,78233:Array,[(713,327)(874,327)])
}
Add(Str_Enum,1316515,756,336)
{
link(onEnum,1834062:doEvent,[])
}
Add(StrList,5863049,707,245)
{
@Hint=#0:|15: |
Strings=#29:1;1;1,1;0;1,1;0;1,1;0;1,1;1;1|29:0;0;1,0;0;1,0;0;1,0;1;1,0;0;1|29:1;1;1,1;0;0,1;1;1,0;0;1,1;1;1|29:1;1;1,0;0;1,1;1;1,0;0;1,1;1;1|29:0;0;1,0;0;1,1;1;1,1;0;1,1;0;1|29:1;1;1,0;0;1,1;1;1,1;0;0,1;1;1|29:1;1;1,1;0;1,1;1;1,1;0;0,1;1;1|29:0;0;1,0;0;1,0;0;1,0;0;1,1;1;1|29:1;1;1,1;0;1,1;1;1,1;0;1,1;1;1|29:1;1;1,0;0;1,1;1;1,1;0;1,1;1;1|29:0;0;0,0;1;0,0;0;0,0;1;0,0;0;0|29:0;0;0,0;0;0,0;0;0,0;0;0,0;0;0|29:1;1;1,1;1;1,1;1;1,1;1;1,1;1;1|29:1;0;0,1;1;0,1;1;1,1;1;0,1;0;0|29:1;0;1,1;0;1,1;0;1,1;0;1,1;0;1|
Point(String)
Point(doGetString)
Point(onGetString)
link(onGetString,7590985:doEnum,[])
}
Add(GL_GTools,2221037,630,308)
{
Point(doPopMatrix)
link(onEvent,1083177:onEvent1,[(681,314)(681,62)])
}
Add(Gl_Translate,7953492,805,287)
{
X=4
link(onTranslate,78233:doClear,[(872,293)(872,265)])
}
Add(StrList,78233,854,252)
{
}
Add(Str_Enum,7590985,756,252)
{
Delimiter=","
link(onEnum,78233:doAdd,[])
link(onEndEnum,1092038:doEnum,[(795,265)(795,307)(697,307)(697,342)])
}
Add(GL_GTools,5614425,854,455)
{
Point(doPopMatrix)
}
Add(DoData,9354975,294,301)
{
link(onEventData,16142722:doEnum,[])
}
Add(Str_Enum,16142722,343,301)
{
Delimiter=""
link(onEnum,1686260:doCase,[(411,307)(411,258)])
link(onEndEnum,13363527:doEnabled,[])
link(String,1005966:FString,[])
}
Add(Case,11208813,546,252)
{
Value=String(:)
DataOnTrue=Integer(10)
link(onNextCase,9672743:doCase,[])
link(onTrue,5188147:doWork1,[(586,265)])
}
Add(HubEx,12111540,637,287)
{
link(onEvent,5863049:doGetString,[])
}
Add(GL_GTools,16160985,70,308)
{
Point(doPushMatrix)
link(onEvent,2612103:doColor,[])
}
Add(DateConvertor,5379650,238,147)
{
Mode=16
Format="mm:ss"
Point(Data)
Point(Result)
link(onResult,6116930:doConvert,[])
link(Data,2597376:Var2,[])
}
Add(FormatStr,1005966,343,245)
{
DataCount=5
Mask="%1 %5 %2 %3 %4"
Point(FString)
link(onFString,14388161:doEvent1,[(393,251)(393,283)(30,283)(30,314)])
link(Str1,1083177:Data1,[(349,99)(327,99)])
link(Str2,5379650:Result,[(356,212)(244,212)])
link(Str3,6116930:Result,[(363,206)(300,206)])
link(Str4,1083177:Data2,[(370,91)(334,91)])
link(Str5,1083177:Data3,[(377,83)(341,83)])
}
Add(DateConvertor,6116930,294,147)
{
Mode=16
Format="mm:ss"
Point(Data)
Point(Result)
link(onResult,15555308:doCalc,[])
link(Data,9702245:Var2,[])
}
Add(Case,9672743,595,252)
{
Value=String( )
DataOnTrue=Integer(11)
link(onNextCase,13239428:doWork1,[(664,258)])
link(onTrue,12111540:doWork3,[(641,265)])
}
Add(HubEx,13239428,660,287)
{
link(onEvent,12111540:doWork2,[])
}
Add(GL_Color,2612103,112,308)
{
Color=16776960
Alpha=0.1
link(onColor,1101264:doDisabled,[])
}
Add(BASS_ChannelPosition,13286559,238,63)
{
Channel="parent.MainSound"
Mode=2
}
Add(GL_Options,1101264,161,301)
{
Flag=8
link(onEvent,4431934:doTranslate,[])
}
Add(GL_Options,13363527,420,308)
{
Flag=8
link(onEvent,2221037:doPopMatrix,[])
}
Add(GL_Disk,15021713,805,455)
{
InRadius=0.2
OutRadius=0.45
Slices=12
Stacks=1
link(onDraw,5614425:doPopMatrix,[])
}
Add(Case,1686260,448,252)
{
Value=String(P)
DataOnTrue=Integer(13)
link(onNextCase,3211355:doCase,[])
link(onTrue,8148364:doWork2,[(490,265)(490,293)])
}
Add(Case,3211355,497,252)
{
Value=String(Z)
DataOnTrue=Integer(14)
link(onNextCase,11208813:doCase,[])
link(onTrue,8148364:doWork1,[(535,265)])
}
Add(HubEx,5188147,582,287)
{
link(onEvent,13239428:doWork2,[])
}
Add(HubEx,8148364,531,287)
{
link(onEvent,5188147:doWork2,[])
}
Add(Gl_Scale,6058202,252,301)
{
X=0.1
Y=0.1
Z=0.1
link(onScale,9354975:doData,[])
}
Add(Gl_Translate,4431934,210,301)
{
X=-5.5
Y=4
Z=-10
link(onTranslate,6058202:doScale,[])
}
Add(MathParse,15555308,399,147)
{
MathStr=" (%1 / %2) * 5"
link(onResult,1005966:doString,[(481,153)(481,226)(331,226)(331,251)])
link(X1,2597376:Var3,[(405,131)])
link(X2,9702245:Var3,[(412,111)])
}
Add(GetDataEx,2597376,238,126)
{
link(Data,13286559:CurPosition,[])
}
Add(GetDataEx,9702245,294,106)
{
Angle=3
link(Data,13286559:Length,[(251,111)])
}
Add(GL_Cylinder,15928214,308,364)
{
BaseRadius=0.01
TopRadius=0.01
Height=5
Slices=4
Stacks=1
link(onDraw,10730492:doTranslate,[])
}
Add(GL_GTools,13747941,77,364)
{
Point(doPushMatrix)
link(onEvent,13349789:doColor,[])
}
Add(Hub,14388161,42,308)
{
link(onEvent1,16160985:doPushMatrix,[])
link(onEvent2,13747941:doPushMatrix,[(63,321)(63,370)])
}
Add(GL_GTools,12075442,476,434)
{
Point(doPopMatrix)
}
Add(GL_Color,13349789,119,364)
{
Color=16776960
Alpha=0.2
link(onColor,4928057:doRotate,[])
}
Add(GL_Rotate,4928057,175,364)
{
Angle=90
Y=1
link(onRotate,1446999:doTranslate,[])
}
Add(Gl_Translate,1446999,224,364)
{
Y=2.1
Z=-2.5
link(onTranslate,338300:doDraw,[])
}
Add(GL_Color,16473148,56,434)
{
Color=16776960
Alpha=0.7
link(onColor,4372175:doTranslate,[])
}
Add(Gl_Translate,2502485,140,434)
{
link(onTranslate,15878356:doRotate,[])
link(Z,15555308:Result,[(160,350)(405,350)])
}
Add(GL_Torus,15110135,427,434)
{
inRadius=0.01
outRadius=0.03
Sides=2
Rings=6
link(onDraw,12075442:doPopMatrix,[])
}
Add(GL_Rotate,15878356,189,434)
{
Y=1
link(onRotate,7860315:doRotate,[])
}
Add(GL_Rotate,7860315,238,434)
{
Angle=90
Y=-1
link(onRotate,6900155:doNext,[])
}
Add(GL_Sphere,338300,266,364)
{
Radius=0.02
link(onDraw,15928214:doDraw,[])
}
Add(GL_Sphere,15601270,392,364)
{
Radius=0.02
link(onDraw,16473148:doColor,[(440,370)(440,416)(44,416)(44,440)])
}
Add(Gl_Translate,10730492,350,364)
{
Z=5
link(onTranslate,15601270:doDraw,[])
}
Add(Gl_Translate,4372175,98,434)
{
Z=-5
link(onTranslate,2502485:doTranslate,[])
}
Add(GL_CallList,9751460,539,434)
{
Index=101
}
Add(GL_Rotate,12515007,385,434)
{
Angle=1
Z=-1
link(onRotate,15110135:doDraw,[])
link(Angle,6900155:Count,[(391,422)(377,422)(377,482)(293,482)])
}
Add(CounterEx,6900155,287,434)
{
Min=1
Max=360
link(onNext,7266603:doData,[])
}
Add(DoData,7266603,336,434)
{
link(onEventData,12515007:doRotate,[])
}
END_SDK
Add(Math,12564806,427,175)
{
Op2=1
link(Op1,3666049:Count,[])
}
Add(DoData,15237373,665,294)
{
Data=String(Z)
link(onEventData,16726026:doWork2,[])
}
Add(Memory,16631735,742,294)
{
Default=String()
}
Add(DoData,14310639,665,343)
{
Data=String(P)
link(onEventData,16726026:doWork3,[(718,349)])
}
Add(IndexToChanel,10262759,581,294)
{
link(onEvent1,15237373:doData,[])
link(onEvent2,703218:doWork2,[(625,307)(625,349)])
}
Add(HubEx,16726026,714,294)
{
link(onEvent,16631735:doValue,[])
}
Add(HubEx,703218,637,343)
{
link(onEvent,14310639:doData,[])
}
Add(Hub,15905374,546,252)
{
link(onEvent1,2464971:doEvent,[])
link(onEvent2,10262759:doEvent,[(570,265)(570,300)])
}
Add(Hub,2750554,630,84)
{
link(onEvent1,5793706:doWork2,[])
link(onEvent2,703218:doWork1,[(641,97)])
}
Add(Switch,13297057,504,308)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(State)
}
Add(IndexToChanel,11301386,497,427)
{
Point(Index)
link(onEvent1,16086151:doEvent1,[(544,433)(544,426)])
link(onEvent2,7758715:doWork3,[(599,440)])
link(Index,13297057:State,[(503,383)(510,383)])
}
Add(MultiElement,2495390,756,420)
{
@Hint=#4:Часы|
@Color=16755285
link(onEvent1,4707146:doEvent,[])
AddHint(-12,49,43,13,@Hint)
}
BEGIN_SDK
Add(EditMulti,14743553,21,21)
{
EventCount=1
WorkCount=1
Width=615
Height=312
VOffset=35
link(doWork1,8767169:doNext,[])
}
Add(Time,2488243,217,119)
{
Format="h:m:s"
Point(DateTime)
}
Add(GL_Color,5258594,504,294)
{
Color=65535
Alpha=0.8
link(onColor,11348934:doDraw,[])
}
Add(Gl_Translate,9489872,462,294)
{
link(onTranslate,5258594:doColor,[])
link(X,13546484:NumSubStr,[])
link(Y,4980576:Index,[(475,268)(426,268)])
}
Add(GL_GTools,15184908,420,294)
{
Point(doPushMatrix)
link(onEvent,9489872:doTranslate,[])
}
Add(IndexToChanel,16312220,511,210)
{
link(onEvent2,15184908:doPushMatrix,[(557,223)(557,279)(410,279)(410,300)])
}
Add(ArrayEnum,4980576,413,210)
{
Type=1
link(onItem,13546484:doEnum,[])
link(onEndEnum,4609522:doTranslate,[(452,223)(452,167)])
link(Array,7503765:Array,[(419,201)(580,201)])
}
Add(Str_Enum,13546484,462,210)
{
link(onEnum,16312220:doEvent,[])
}
Add(StrList,12943279,413,119)
{
@Hint=#0:|15: |
Strings=#29:1;1;1,1;0;1,1;0;1,1;0;1,1;1;1|29:0;0;1,0;0;1,0;0;1,0;1;1,0;0;1|29:1;1;1,1;0;0,1;1;1,0;0;1,1;1;1|29:1;1;1,0;0;1,1;1;1,0;0;1,1;1;1|29:0;0;1,0;0;1,1;1;1,1;0;1,1;0;1|29:1;1;1,0;0;1,1;1;1,1;0;0,1;1;1|29:1;1;1,1;0;1,1;1;1,1;0;0,1;1;1|29:0;0;1,0;0;1,0;0;1,0;0;1,1;1;1|29:1;1;1,1;0;1,1;1;1,1;0;1,1;1;1|29:1;1;1,0;0;1,1;1;1,1;0;1,1;1;1|29:0;0;0,0;1;0,0;0;0,0;1;0,0;0;0|29:0;0;0,0;0;0,0;0;0,0;0;0,0;0;0|29:1;1;1,1;1;1,1;1;1,1;1;1,1;1;1|
Point(String)
Point(doGetString)
Point(onGetString)
link(onGetString,10882983:doEnum,[])
}
Add(GL_GTools,6564130,301,168)
{
Point(doPopMatrix)
link(onEvent,14743553:onEvent1,[(343,174)(343,62)])
}
Add(Gl_Translate,4609522,511,161)
{
X=4
link(onTranslate,7503765:doClear,[(548,167)(548,139)])
link(X,14809192:Result,[(517,101)(139,101)])
}
Add(StrList,7503765,560,126)
{
}
Add(Str_Enum,10882983,462,126)
{
Delimiter=","
link(onEnum,7503765:doAdd,[])
link(onEndEnum,4980576:doEnum,[(501,139)(501,181)(403,181)(403,216)])
}
Add(GL_GTools,7024502,588,294)
{
Point(doPopMatrix)
}
Add(GL_Cube,11348934,546,294)
{
Size=0.7
link(onDraw,7024502:doPopMatrix,[])
}
Add(DoData,9300101,217,161)
{
link(onEventData,2448133:doEnum,[])
link(Data,2488243:FormatTime,[])
}
Add(Str_Enum,2448133,259,161)
{
Delimiter=""
link(onEnum,13634345:doCase,[])
link(onEndEnum,6564130:doPopMatrix,[])
}
Add(Gl_Scale,6141684,175,161)
{
X=0.1
Y=0.1
Z=0.1
link(onScale,9300101:doData,[])
}
Add(Case,13634345,350,161)
{
Value=String(:)
DataOnTrue=Integer(10)
link(onNextCase,14417648:doWork2,[])
link(onTrue,14417648:doWork3,[(396,174)])
}
Add(HubEx,14417648,392,161)
{
link(onEvent,12943279:doGetString,[])
}
Add(GL_GTools,8193088,42,161)
{
Point(doPushMatrix)
link(onEvent,7142525:doRotate,[])
}
Add(Gl_Translate,14466152,133,161)
{
X=-3.2
Y=-4
Z=-10
link(onTranslate,6141684:doScale,[])
link(X,5917467:Result,[(139,110)(181,110)])
}
Add(CounterEx,8767169,42,56)
{
Min=1
Max=360
link(onNext,11050530:doCalc,[])
}
Add(MathParse,14809192,133,56)
{
DataCount=1
MathStr="max((sin(%1)*360)/30, 4)"
AngleMode=1
link(onResult,5917467:doOperation,[])
link(X1,8767169:Count,[(139,47)(83,47)(83,98)(48,98)])
}
Add(Math,5917467,175,56)
{
OpType=2
Op2=-0.4
link(onResult,8193088:doPushMatrix,[(214,62)(214,27)(32,27)(32,167)])
}
Add(MathParse,11050530,91,56)
{
MathStr="(cos(%1)*360)/20"
AngleMode=1
link(onResult,14809192:doCalc,[])
}
Add(GL_Rotate,7142525,91,161)
{
Y=1
Z=1
link(onRotate,14466152:doTranslate,[])
}
END_SDK
Add(Hub,16086151,553,420)
{
OutCount=3
link(onEvent1,7758715:doWork2,[])
link(onEvent2,881688:doWork4,[(585,433)(585,482)])
}
Add(HubEx,7758715,595,420)
{
link(onEvent,2495390:doWork1,[])
}
Add(InfoTip,767221,56,497)
{
Info=#52:красные лампы — низкие частоты (диапазон до 200 Гц),|51:жёлтые — средне-низкие (диапазон от 200 до 800 Гц),|38:зелёные — средние (от 800 до 3500 Гц),|20:синие — выше 3500 Гц|0:|54:"0" канал от 43 до 215 Гц (индексы частот от 2 до 10) |57:"1" канал от 215 до 1076 Гц (индексы частот от 10 до 50) |58:"3" канал от 1076 до 5383 Гц (индексы частот от 50 до 250)|
HAlign=0
Width=323
Height=123
}
Add(Switch,4196477,364,266)
{
DataOn=Integer(1)
DataOff=Integer(0)
Point(State)
}
Add(Hub,159600,385,175)
{
InCount=2
OutCount=1
link(onEvent1,12564806:doOperation,[])
}
Add(Hub,9057206,350,238)
{
link(onEvent1,3666049:doPrev,[(419,244)(419,139)])
link(onEvent2,159600:doEvent2,[(374,251)(374,188)])
}
Add(Memory,9683990,462,455)
{
link(onData,881688:doWork1,[])
}
Add(LineBreak,1060054,462,497)
{
Type=1
link(Data,9683990:Value,[])
Primary=[5674244,-14,-182]
}
Add(MultiElement,13337914,875,420)
{
}
BEGIN_SDK
Add(EditMulti,4767841,21,21)
{
WorkCount=1
Width=531
link(doWork1,9486998:doPushMatrix,[(49,27)(49,90)])
}
Add(Gl_Translate,10233628,119,84)
{
link(onTranslate,15472630:doColor,[])
}
Add(GL_GTools,6566414,406,84)
{
Point(doPopMatrix)
}
Add(GL_GTools,9486998,77,84)
{
Point(doPushMatrix)
link(onEvent,10233628:doTranslate,[])
}
Add(GL_Teapot,9254876,357,84)
{
Size=1.5
link(onDraw,6566414:doPopMatrix,[])
}
Add(GL_Rotate,3744371,287,84)
{
Angle=1
X=1
link(onRotate,9254876:doDraw,[])
link(Angle,6786168:Count,[(293,72)(258,72)(258,128)(216,128)])
}
Add(CounterEx,6786168,210,84)
{
Min=1
Max=360
link(onNext,3744371:doRotate,[])
}
Add(GL_Color,15472630,161,84)
{
Color=16776960
Alpha=0.1
link(onColor,6786168:doNext,[])
}
END_SDK
Add(IndexToChanel,4707146,819,420)
{
Point(Index)
link(onEvent1,13337914:doWork1,[])
link(Index,212817:State,[(825,291)(503,291)])
}
Add(IndexToChanel,5449182,378,343)
{
Point(Index)
link(onEvent1,3065135:doPushMatrix,[(419,349)(419,601)])
link(onEvent2,7678669:doWork2,[])
link(Index,10703582:Var3,[(384,313)])
}
Add(GetDataEx,10703582,154,308)
{
link(Data,16133713:Var1,[(160,215)])
}
Add(Gl_Text,16185816,616,588)
{
Font=[Arial,8,0,16777215,0]
Text="Нет .MP3"
ListStart=100
link(onDraw,2940220:doPopMatrix,[])
link(GLHandle,4904241:Var,[])
}
Add(Gl_Translate,4659828,476,595)
{
X=-1
link(onTranslate,14087160:doScale,[])
}
Add(GL_GTools,3065135,427,595)
{
Point(doPushMatrix)
link(onEvent,4659828:doTranslate,[])
}
Add(GL_GTools,2940220,665,595)
{
Point(doPopMatrix)
link(onEvent,6370009:doWork3,[(709,601)(709,541)(472,541)])
}
Add(GL_Color,6561336,560,595)
{
Color=16777215
Alpha=0.5
link(onColor,16185816:doDraw,[])
}
Add(LineBreak,10587350,553,567)
{
link(Out,16185816:doInit,[(599,573)(599,594)])
Primary=[16410828,-448,-441]
}
Add(HubEx,6370009,468,427)
{
link(onEvent,11301386:doEvent,[])
}
Add(LineBreak,14424995,63,35)
{
Type=1
link(Data,16204375:Data2,[])
Primary=[4904241,553,525]
}
Add(Hub,1520515,105,343)
{
link(onEvent1,15485083:doEvent,[])
}
Add(Gl_Scale,14087160,518,595)
{
X=0.5
Y=0.5
Z=0.5
link(onScale,6561336:doColor,[])
}
Add(BASS_ChannelVisibleSpectrum,537950,70,154)
{
SoundStream="MainSound"
Width=2
link(WindowsHandle,16204375:Data3,[])
}
END_SDK
Add(GetDataEx,14536267,287,125)
{
Angle=3
link(Data,2953706:Handle,[(125,130)])
}
Add(Hub,1681317,448,140)
{
link(onEvent1,9506849:doStop,[(485,146)(485,279)(226,279)(226,237)])
link(onEvent2,2953706:doClose,[(474,153)(474,120)(110,120)(110,90)])
}
Add(MultiElement,10452138,350,147)
{
}
BEGIN_SDK
Add(EditMulti,10947018,21,21)
{
WorkCount=1
Height=151
link(doWork1,9939997:doInit,[(35,27)(35,83)])
}
Add(GL_GluTools,9939997,49,77)
{
Texture=0
link(onInit,10106802:doEnabled,[])
}
Add(GL_Options,10106802,119,77)
{
Flag=8
link(onEvent,2572458:doEnabled,[])
}
Add(GL_Options,2572458,182,77)
{
Flag=1
}
END_SDK
Add(Hub,14816504,84,238)
{
link(onEvent1,3029165:doData,[])
link(onEvent2,12698366:In,[(119,251)(119,286)])
}
Add(LineBreak,5804531,350,182)
{
link(Out,5548095:doWork4,[(400,188)(400,167)])
Primary=[12698366,-210,98]
}
Add(PaintBox,8166211,420,49)
{
Left=5
Top=120
Width=175
Height=49
Point(onMouseDown)
link(onBeforeDraw,5548095:doWork5,[(464,55)(464,115)(394,115)(394,174)])
}
Add(Timer,646597,364,49)
{
Interval=50
link(onTimer,8166211:doRefresh,[])
}


Редактировалось 6 раз(а), последний 2018-04-29 23:24:33
карма: 4

0
Сообщение
...
Прикрепленные файлы
(файлы не залиты)