![]() |
![]() ![]() ![]() ![]() ![]()
|
next newest topic | next oldest topic |
Author | Topic: Pulse of specified Time |
patrik Member |
![]() ![]() ![]() Hello, for some time now, i am wondering how to create a pulse or a Gate of specified time within Capytalk. I am absolutely sure this must be the simplest thing in the world, but i Can't find it in the Capytalk reference. For example, a drum synthesizer is getting a long noteOn message, but should only output a very short hihat sound. But also in other situations it would be handy to create a signal of "1" for a specified time. At the moment I'm always using a "Function Generator" with a pulse wave for these purposes, but i guess there is a more straight forward way. thanks for any help! patrik IP: Logged |
keph Member |
![]() ![]() ![]() How are you triggering the sound? You have options like: bpm: dutyCycle IP: Logged |
pete Member |
![]() ![]() ![]() Hi Patrik Another way to make a mono-stable in CapyTalk is (1-(!KeyDown fullRamp: 0.5s)) asLogicValue The time of the mono-stable is half the specified time, so above would hold on for 0.25s. The technique you use depends on what you want to happen if you feed extra long or extra short gate inputs. IP: Logged |
patrik Member |
![]() ![]() ![]() Thanks Keph, Thanks pete! I've been searching for a single pulse, so not the bpm method, although i thought about using it maybe with very low speed. The other one is an elegant way of doing this! I just thought that there could be a short method like "!KeyDown pulse: 0.5 s"(witch would start(output 1) when receiving a zero to one transition, ignore everything afterwards, stay at 1 for specified time, and then drop to 0 again, and listen for input again) since there is an expression for a ramp. thanks again! EDIT: not shure about the ignore input thing..just in case santa clause is listening [This message has been edited by patrik (edited 04 December 2010).] IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() ![]() |
This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.