The NumShotter :: a.k.a The 50
The NumShotter :: a.k.a The 50 Posted on: 13.09.2011 by Wendy Heckenkamp Hello DJTT. For the last couple of month I was working on a little mod: The NumShotter, a.k.a The 50 | |
Percy Keehan 13.09.2011 |
Originally Posted by FLoer
|
Wendy Heckenkamp 13.09.2011 | Hello DJTT. For the last couple of month I was working on a little mod: The NumShotter, a.k.a The 50 |
Chasidy Heckenbach 16.09.2011 |
Originally Posted by FLoer
if you're not seeing too much cpu usage then i guess no real need to worry about it anyway. odd tho - it *should* be able to work with grouped 'if' statements and should be more efficient too... i might have a play later with glovepie - been a while since i really used it too much |
Chasidy Heckenbach 16.09.2011 |
Originally Posted by FLoer
whether or not thats the only problem tho not sure... Code:
if var.Number == 1 midi.channel1.csharp1 = swallow(Keyboard.NUMPAD2) midi.channel1.d1 = swallow(Keyboard.NUMPAD3) endif |
Joan Kollmorgen 14.09.2011 |
Originally Posted by ToOntown
|
Janell Selser 14.09.2011 |
Originally Posted by DJ_Pabloco
To the OP, nice work! |
Percy Keehan 13.09.2011 |
Originally Posted by FLoer
|
Wendy Heckenkamp 13.09.2011 | Hello DJTT. For the last couple of month I was working on a little mod: The NumShotter, a.k.a The 50 |
Wendy Heckenkamp 16.09.2011 |
if you're not seeing too much cpu usage then i guess no real need to worry about it anyway.
i might have a play later with glovepie - been a while since i really used it too much
|
Chasidy Heckenbach 16.09.2011 |
Originally Posted by FLoer
if you're not seeing too much cpu usage then i guess no real need to worry about it anyway. odd tho - it *should* be able to work with grouped 'if' statements and should be more efficient too... i might have a play later with glovepie - been a while since i really used it too much |
Wendy Heckenkamp 16.09.2011 | quite embarrassing to make this mistake.. well, thanks for pointing it out. but even with this error removed i still found no way to make the if-statements work right. only my original code gives me proper one-shots one-hit-one-play + no repeat on hold) Holding down will keep the midi-key active, by the way I changed the var.Number = X to var.Number == X Hence I guess Operator "=" is more expensive in CPU-Usage!? Code:
if pressed(swallow(Keyboard.NUMPAD1)) then var.Number++ if var.Number > 3 then var.Number = 1 midi.channel1.csharp1 = swallow(Keyboard.NUMPAD2) and (var.Number == 1) midi.channel1.d1 = swallow(Keyboard.NUMPAD3) and (var.Number == 1) midi.channel1.dsharp1 = swallow(Keyboard.NUMPAD4) and (var.Number == 1) ... how could = and == give the same effect? Why do both stop the retriggering while holding the button in this scenario? |
Chasidy Heckenbach 16.09.2011 |
Originally Posted by FLoer
whether or not thats the only problem tho not sure... Code:
if var.Number == 1 midi.channel1.csharp1 = swallow(Keyboard.NUMPAD2) midi.channel1.d1 = swallow(Keyboard.NUMPAD3) endif |
Wendy Heckenkamp 16.09.2011 | So I tried to modify my script, but i must have done something wrong. if i change it from this ... midi.channel1.csharp1 = swallow(Keyboard.NUMPAD2) and (var.Number = 1) midi.channel1.d1 = swallow(Keyboard.NUMPAD3) and (var.Number = 1) ... to ... if var.Number = 1 midi.channel1.csharp1 = swallow(Keyboard.NUMPAD2) midi.channel1.d1 = swallow(Keyboard.NUMPAD3) endif ... the "sends" come so repeatedly that my oneshots restart like 20 times a second on hold... so even one hit will repeat the sample approx. 3 times already. Of course i only want them to trigger once anyone has an idea on that? maybe a command to suppress the re-triggering a note? |
Wendy Heckenkamp 15.09.2011 | thanks to all replies. @zestoi I will do that. I was just glad that the script worked, and did not believe about optimizing.. till now. thanks for the tip. @extraclassic Big ups to you! Your projects had been a big inspiration to me |
Joan Kollmorgen 14.09.2011 |
Originally Posted by ToOntown
|
Shonda Soulier 14.09.2011 | Excellent work! Very nice concept. The important thing is that it works for you and it doesn't matter what any wannabe-modder believes of it. |
Janell Selser 14.09.2011 |
Originally Posted by DJ_Pabloco
To the OP, nice work! |
Chasidy Heckenbach 14.09.2011 | thats pretty awesome not sure if the glovepie code might be more efficient tho if you wrapped "if" statements around each of the 4 blocks (page change and the pages) so then it doesnt need to evaluate so much each iteration. as glovepie loops round your code around 20 times a second i believe - which is the only bad thing i've found about it - it can end up eating a measurable amount of cpu which i don't like. nice use of space in the flight case and i presume u could always use it in that space at the bottom if u wanted to - tho would probably actually be more in the way for what u want to use it for atm. i got as far as buying 8 arcade buttons, gamepad, soldering iron and solder a few months back but haven't actually got round to doing anything with them yet (apart from playing around in glovepie...) |
Wendy Heckenkamp 13.09.2011 | i already use the transport buttons of my vci to juggle cuepoints (i can switch between normal transport and cue-point-juggleing) . Although, cue-point-juggling would not be hard to map for the numShotter. I use my numShotter for this http://www.youtube.com/watch?v=4S9wTDt5x9Q Only a little bit more advanced, now with Battery3 |
Percy Keehan 13.09.2011 |
Originally Posted by FLoer
|
<< Back to Reviews of DJ equipment Reply