Jump to content


Photo
- - - - -

Show where/how many times this instrumentis used


  • Please log in to reply
18 replies to this topic

#1 midi error

midi error

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1075 posts
  • Gender:Male
  • Location:The Chemical Plant Zone

Posted 29 September 2018 - 13:01

I use a lot of recorded stems in renoise and often duplicate them to have them in different places, some chopped, some backwards, some with looped sections. 

 

I would like to know how many times an instrument is used in the track - maybe how many patterns its in, or how many times its triggered. 

 

Primarily because I have a stem and I want to know if this is the ONLY instance used - whether I can do some destructive editing or not. 

 

 

....going further (sorry!) if we were able to highlight the tracks  patterns which contained this sample - that would be great. Pretty sure I requested this a few years ago but this form only goes back so far.

 

Thanks, I'm using renoise a lot at the moment

 

midierror 


Edited by midi error, 29 September 2018 - 14:26.

  • TheBellows likes this

#2 TheBellows

TheBellows

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2570 posts
  • Gender:Male
  • Location:Oslo, Norway
  • Interests:Jepp

Posted 29 September 2018 - 13:40

It would also be great to be able to highlight the selected instrument in the pattern matrix and pattern editor so it would be easy to spot.
  • midi error likes this


#3 Ledger

Ledger

    Guruh Motha Fakka Knows More About Renoise Than Taktik

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3646 posts
  • Gender:Male

Posted 29 September 2018 - 15:24

Would something like this help?

 

Check Instrument Times Used.PNG


  • midi error likes this

--> Lua for newbies <--

My Scripts On Forum

Top Tip!

 

cpu : Xeon 1231 v3, os : Win 7 64bit, audio: Audient iD4
posts as 4tune @ KvR and some other music related sites


#4 Neurogami

Neurogami

    Big Super GrandMasta Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 762 posts
  • Gender:Male
  • Location:Scottsdale AZ
  • Interests:Art, music, technology

Posted 29 September 2018 - 18:45

I'm in the same boat. Using my own recorded samples and not wanting to repeat them in different songs. 

 

I wrote a Ruby script to run through a folder of xrns files and grab a list of samples used and write out a text file.   I didn't care about regular instruments so I had to keep adding exclusions to make the results more readable.

 

It was a clunky way to approach it but it did help me keep track of some things.

 

Ruby was faster for me than trying to use Lua in a tool, but that would be a better way to go about it.



#5 Ledger

Ledger

    Guruh Motha Fakka Knows More About Renoise Than Taktik

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3646 posts
  • Gender:Male

Posted 29 September 2018 - 20:02

Newer version below (Post 7)

Edited by Ledger, 11 October 2018 - 13:19.

  • danoise, TheBellows and midi error like this

--> Lua for newbies <--

My Scripts On Forum

Top Tip!

 

cpu : Xeon 1231 v3, os : Win 7 64bit, audio: Audient iD4
posts as 4tune @ KvR and some other music related sites


#6 midi error

midi error

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1075 posts
  • Gender:Male
  • Location:The Chemical Plant Zone

Posted 30 September 2018 - 06:44

Ah wow thats brilliant!! I'll try it later, thank you


  • Ledger likes this

#7 Ledger

Ledger

    Guruh Motha Fakka Knows More About Renoise Than Taktik

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3646 posts
  • Gender:Male

Posted 30 September 2018 - 18:48

updated this a bit now (see changes at end of post)
 
let me know if any probs:
 
menu entries are in Intrument menu and tools menu (Ledger`s Scripts) and also a shortcut: "Check Times Instrument Used"
 
Attached File  ledger.scripts.CheckTimesInstrumentUsed_V0.71.xrnx   4.85KB   12 downloads
 
Check Instrument Times Used 0.6.PNG

Choose instrument you want to check from popup and [UPDATE] button to re-scan / scan a newly chosen instrument

TEXT READOUT
-------------
-The top section lists the track indexes which have at least one note of the selected instrument
-The bottom section gives you a pattern/ line breakdown of any notes in the selected track
 
 
 
Also another tool I remembered that could be useful along-side is taktiks Find and Replace:
 
https://www.renoise....ind-and-replace
 
 

Spoiler


Edited by Ledger, 12 October 2018 - 17:11.

  • Djeroek likes this

--> Lua for newbies <--

My Scripts On Forum

Top Tip!

 

cpu : Xeon 1231 v3, os : Win 7 64bit, audio: Audient iD4
posts as 4tune @ KvR and some other music related sites


#8 joule

joule

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1837 posts
  • Gender:Not Telling

Posted 30 September 2018 - 19:09

Nice one!

 

Ledger, you seem to be scanning the song twice? If you fix that, I can submit some further optimizations making the scanning a lot faster.



#9 Ledger

Ledger

    Guruh Motha Fakka Knows More About Renoise Than Taktik

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3646 posts
  • Gender:Male

Posted 30 September 2018 - 19:25

First loop scans all tracks to find the first instance of a note.  It breaks/ returns when the first note is found.
 
Second loop scans the selected track only but gets all notes. <- lower part of text readout
 
There is a bit of an inefficiency as selected track has the potential to get scanned fully twice, but code seemed neater this way. Also a single string is getting edited as you go along the function.  (sidenote: Also just silent updated to 0.62 above to deal with a formatting issue)
 
 
Any optimizations would be welcome!  In fact if you have an abstracted snippet I could apply, it would probably do me good to finally learn properly the `ninja scanning method` ! :ph34r: :)

Edited by Ledger, 30 September 2018 - 19:30.

--> Lua for newbies <--

My Scripts On Forum

Top Tip!

 

cpu : Xeon 1231 v3, os : Win 7 64bit, audio: Audient iD4
posts as 4tune @ KvR and some other music related sites


#10 Ledger

Ledger

    Guruh Motha Fakka Knows More About Renoise Than Taktik

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3646 posts
  • Gender:Male

Posted 01 October 2018 - 00:47

Updated tool to 0.7
 
New Version (Post 7)
 
--added joule`s speed improvements
--now when no notes are found in the selected track it will not list Pattern,Line multiple times.  It just says:
NO NOTES FOUND IN CURRENTLY SELECTED `TRACK X`:
--improved instrument popup numbering to match renoises hex numbering

Edited by Ledger, 11 October 2018 - 13:20.

  • Rpnz and midi error like this

--> Lua for newbies <--

My Scripts On Forum

Top Tip!

 

cpu : Xeon 1231 v3, os : Win 7 64bit, audio: Audient iD4
posts as 4tune @ KvR and some other music related sites


#11 midi error

midi error

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1075 posts
  • Gender:Male
  • Location:The Chemical Plant Zone

Posted 01 October 2018 - 09:01

Awesome, thanks for making this!The version i treid yesterday didnt work but I'll give this a go today



#12 Ledger

Ledger

    Guruh Motha Fakka Knows More About Renoise Than Taktik

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3646 posts
  • Gender:Male

Posted 08 October 2018 - 12:24

Awesome, thanks for making this!The version i treid yesterday didnt work but I'll give this a go today

 

Did you get a chance to test this yet.  Does it work ok on your system?


  • midi error likes this

--> Lua for newbies <--

My Scripts On Forum

Top Tip!

 

cpu : Xeon 1231 v3, os : Win 7 64bit, audio: Audient iD4
posts as 4tune @ KvR and some other music related sites


#13 Rpnz

Rpnz

    Big Masta Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPip
  • 579 posts
  • Gender:Male

Posted 11 October 2018 - 00:03

this is awesome. Always love your scripts ledger!
House Music All Night Long. - Say What?

#14 Ledger

Ledger

    Guruh Motha Fakka Knows More About Renoise Than Taktik

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3646 posts
  • Gender:Male

Posted 11 October 2018 - 00:24

this is awesome. Always love your scripts ledger!

 

 

Always appreciate your feedback Rpnz,  as being one of the regulars to pop into the announcement threads!

 

cheers!


--> Lua for newbies <--

My Scripts On Forum

Top Tip!

 

cpu : Xeon 1231 v3, os : Win 7 64bit, audio: Audient iD4
posts as 4tune @ KvR and some other music related sites


#15 Drop Shadow

Drop Shadow

    Big Daddy Member

  • Normal Members
  • PipPipPipPipPipPipPip
  • 443 posts
  • Gender:Male
  • Location:Copenhagen

Posted 11 October 2018 - 14:40

this is awesome. Always love your scripts ledger!

Same here. I use them a lot.


  • Ledger likes this

#16 Djeroek

Djeroek

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 6792 posts
  • Gender:Male
  • Location:Borneo

Posted 12 October 2018 - 07:22

To count the occurances an instrument is used I use a tool Joule made based upon this suggestion thread; http://forum.renoise...arent-used-yet/

Tool to be found a few posts down in said thread. It puts a number in front of each instrument.
  • Ledger likes this

#17 midi error

midi error

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1075 posts
  • Gender:Male
  • Location:The Chemical Plant Zone

Posted 12 October 2018 - 16:18

Did you get a chance to test this yet.  Does it work ok on your system?

 

Yeah, just tried it! Very nice, thank you so much. Its going to help me a lot!


  • Ledger likes this

#18 Ledger

Ledger

    Guruh Motha Fakka Knows More About Renoise Than Taktik

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3646 posts
  • Gender:Male

Posted 12 October 2018 - 17:09

Yeah, just tried it! Very nice, thank you so much. Its going to help me a lot!


Good stuff! Not sure what went wrong before, but at least it works now.
  • midi error likes this

--> Lua for newbies <--

My Scripts On Forum

Top Tip!

 

cpu : Xeon 1231 v3, os : Win 7 64bit, audio: Audient iD4
posts as 4tune @ KvR and some other music related sites


#19 midi error

midi error

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1075 posts
  • Gender:Male
  • Location:The Chemical Plant Zone

Posted 14 October 2018 - 11:56

Yeah I'm really grateful for this. I've spent a week out of the studio so am putting it into practice now  - its very useful!


  • Ledger likes this