Advertisement
nuggt69

nokia

Oct 20th, 2020
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. @name Music: Ya Tareshy
  2. @inputs On
  3. @outputs [TrackStrings TrackSounds TrackVolume]:array I J Length Count
  4.  
  5. #This expression was generated by midi2expression2, by Jcw87
  6.  
  7. if (first()) {
  8. #Midi Track 5
  9. TrackSounds[1,string] = "synth/saw.wav"
  10. TrackVolume[1,number] = 5
  11. TrackStrings[1,string] = "00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>75>00>00>00>82>79>79>79>77>77>82>79>79>79>79>79>79>79>79>79>79>79>75>75>00>00>75>75>00>00>77>77>00>79>79>79>81>00>79>79>79>77>77>77>75>75>00>00>00>75>75>75>75>00>00>00>75>75>75>75>75>79>79>79>77>77>77>79>79>79>79>79>79>79>79>79>79>79>75>75>00>00>00>75>75>00>77>77>00>79>79>79>81>00>00>79>79>77>77>77>77>75>75>75>00>00>77>77>77>77>75>00>00>74>74>74>74>77>77>77>77>75>00>81>77>77>77>77>77>77>77>77>77>77>77>75>75>00>00>75>75>00>77>77>00>00>79>79>81>00>00>79>79>77>77>77>77>75>75>00>00>00>75>00>00>00>00>00>00>00>00>00>00>77>77>77>74>74>74>75>75>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>77>00>00>77>77>00>75>75>00>00>74>74>74>74>74>74>74>74>72>72>00>77>75>00>00>00>75>00>00>77>00>00>79>79>81>00>00>79>79>79>77>77>77>75>75>00>00>00>75>75>75>75>75>00>00>79>79>77>00>00>77>77>00>75>75>00>74>74>74>74>74>74>74>74>72>72>00>75>77>75>00>00>75>75>00>77>00>00>79>79>79>81>00>79>79>79>77>77>77>75>75>00>00>00>00>75>75>75>75>00>75>00>77>77>75>77>75>75>77>75>75>77>75>77>77>75>75>77>77>77>74>74>74>75>75>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>00>75>00>00>00>00>82>79>79>79>77>77>82>79>79>79>79>79>79>00>00>79>79>79>75>75>75>75>75>79>79>00>79>00>00>75>75>00>74>74>00>72>72>72>72>00>75>00>00>00>00>82>00>00>00>77>77>82>79>79>79>79>79>79>00>79>79>79>79>75>75>75>75>75>79>79>00>77>77>00>75>75>00>74>74>00>72>72>72>72>72>00>74>74>74>74>00>77>77>00>75>75>00>77>77>77>77>77>77>77>77>75>00>00>74>74>74>74>74>77>77>00>75>75>00>74>74>00>72>72>00>72>72>72>72>00>00>74>74>74>74>74>77>77>00>75>75>00>77>77>77>77>77>77>77>77>00>75>75>77>77>77>77>82>00>79>79>79>79>79>79>75>75>75>75>75>75>75>75>"
  12.  
  13. Length=TrackStrings[1,string]:length()
  14. }
  15.  
  16. if (On) {
  17. interval(55)
  18. if (~On) {
  19. I=J=0
  20. Count=TrackStrings:count()
  21. while( J<Count ) {
  22. J++
  23. holoCreate(J, entity():pos(), vec())
  24. holoParent(J, entity())
  25. holoEntity(J):soundPlay(J,0, TrackSounds[J,string] )
  26. soundVolume(J, TrackVolume[J,number] )
  27. }
  28. }
  29. I+=3
  30. #Edit the line below to set the loop point
  31. if(I >= Length) {I = 0}
  32. SubA=I-2
  33. SubB=I-1
  34. J=0
  35. while( J<Count ) {
  36. J++
  37. PV=TrackStrings:string(J):sub(SubA,SubB):toNumber()
  38. soundPitch(J,2^(PV/12))
  39. }
  40. } else {
  41. soundPurge()
  42. holoDeleteAll()
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement