Playable Instruments

Author Topic: Playable Instruments  (Read 33830 times)

Holy crap, this is an AMAZING addon so far! After a fair bit of tinkering, I managed to replicate one of my favorite bass riffs, but it doesnt sound right because I dont know how to extend a note. Would I just turn the tempo way down and then set it right back up again?

Holy crap, this is an AMAZING addon so far! After a fair bit of tinkering, I managed to replicate one of my favorite bass riffs, but it doesnt sound right because I dont know how to extend a note. Would I just turn the tempo way down and then set it right back up again?
cant extend note length, just time between notes. limitation of audio systems that arent for actual audio studios overall

cant extend note length, just time between notes. limitation of audio systems that arent for actual audio studios overall

Ah I see, oh well.
The riff is the bass line to Feel Good Inc (as close to it as I could make it)

Part 1:  t:135,D#3,t:300,;,D#3,F3,F#3,;,B3,;,A#3,_
Part 2:  t:135,G#3,t:300,;,G#3,B3,A#3,;,F#3,;,D#3,_
« Last Edit: April 01, 2018, 04:05:47 PM by eddyman26 »




yeah this is cool and all but if there was some 3rd party program i could use to make loops like FL Studio's piano mixer that would be cool

Alright for anyone looking to translate this version's notes into events, you can do it with the PlayPitchedSound event.

Here's the note, and the required PlayPitchedSound Sound/Pitch.



Note   Sound   Pitch
C3_C31
C#3_C31.06
D3_C31.12
D#3_C31.18
E3_F30.94
F3_F31
F#3_F31.06
G3_F31.12
G#3_F31.18
A3_F31.24
A#3_C40.88
B3_C40.96

Note   Sound   Pitch
C4_C41
C#4_C41.06
D4_C41.12
D#4_C41.18
E4_F40.94
F4_F41
F#4_F41.06
G4_F41.12
G#4_F41.18
A4_F41.24
A#4_C50.88
B4_C50.96

Note   Sound   Pitch
C5_C51
C#5_C51.06
D5_C51.12
D#5_C51.18
E5_F50.94
F5_F51
F#5_F51.06
G5_F51.12
G#5_F51.18
A5_F51.24
A#5_C60.88
B5_C60.96

Note   Sound   Pitch
C6_C61



On some notes the pitch is a tinsy bit off, but overall its p good.


Are there files for the songs I've saved? If so where can I find them in my Blockland folder?
« Last Edit: April 16, 2018, 01:50:50 PM by Col. Burton »

Alright for anyone looking to translate this version's notes into events, you can do it with the PlayPitchedSound event.

Here's the note, and the required PlayPitchedSound Sound/Pitch.

-snip-

On some notes the pitch is a tinsy bit off, but overall its p good.

Very close!  Here's the fixed version:



Note   Sound   Pitch
C3_C31
C#3_C31.06
D3_C31.12
D#3_C31.19
E3_F30.945
F3_F31
F#3_F31.06
G3_F31.12
G#3_F31.19
A3_F31.2625
A#3_C40.8925
B3_C40.945

Note   Sound   Pitch
C4_C41
C#4_C41.06
D4_C41.12
D#4_C41.19
E4_F40.945
F4_F41
F#4_F41.06
G4_F41.12
G#4_F41.19
A4_F41.2625
A#4_C50.8925
B4_C50.945

Note   Sound   Pitch
C5_C51
C#5_C51.06
D5_C51.12
D#5_C51.19
E5_F50.945
F5_F51
F#5_F51.06
G5_F51.12
G#5_F51.19
A5_F51.2625
A#5_C60.8925
B5_C60.945

Note   Sound   Pitch
C6_C61



Probably should've made something like this earlier.  Thanks for doing this.
« Last Edit: April 15, 2018, 05:55:50 PM by Electrk.. »

Very close!  Here's the fixed version:
Probably should've made something like this earlier.  Thanks for doing this.

playpitchedsound is limited to .020 difference on the slider u fukkin bitch
make a playphrase event u joker


1.0.0 to 1.0.1
  • Removed className restrictions on playSong to make way for upcoming instrument events

Event_Instruments has been released!

PLEASE READ: I didn't realize until after I made these that Blockland removes semicolons from output events.  Rather than change the entire notation system, I simply made exclamation marks ! replace semicolons, but only for these events.

So basically, wherever you would normally use a semicolon, use an exclamation mark instead.  I know this inconsistency sucks, but I'd rather have this than screw up people's songs by changing how the notation system works.


Output Events (bricks only):
  • playNote
  • playRandomNote
  • playPhrase
  • playSong
  • setSongPhrase

Input Events:
  • onPhraseEnd
  • onPhraseLoop
  • onSongEnd
  • onSongLoop



Updated System_Instruments

1.0.2 to 1.0.3
  • Added processInputEvent callback onPhraseLoop for Event_Instruments update


1.0.1 to 1.0.2
  • Added getInstrumentFromIndex and isValidInstrumentIndex to InstrumentsNamespace class
  • Added processInputEvent callbacks onPhraseEnd, onSongEnd, and onSongLoop to make way for Event_Instruments add-on
« Last Edit: April 16, 2018, 01:20:50 AM by Electrk.. »