Вверх ↑
Ответов: 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