FromUser https://www.reddit.com/r/SynthesizerV/
I spent a couple hours iterating with Anthropic’s Claude AI last night, and managed to finally get it to ouptut working scripts for Synthesizer V Pro Studio 1.11.0. You can do the same with zero coding knowledge. It’s free and I’m including a prompt here so you can skip most of the steps I had to go through to get working scripts in a tiny fraction of the time.
Using the following steps (and included copy / pasted prompt), my next three working scripts went from not existing to being tested and fully working in SynthV in under a minute each with no errors. This process only looks longer because I’m being thorough to cover every scenario no matter how different your script may be.
Find a text editor that can save in plain text formatting (not rtf, word doc, etc) and open a new document. For me on mac, that is the TextEdit app. For Windows, AFAIK, it’s Notepad.
Go to the Claude https://claude.ai and cut and paste the following prompt, then before submitting, change the first and last lines to match your needs.
I'm using Synthesizer V Studio Pro [your version #] on [your operating system]. I need a script that follows these guidelines:
Uses JavaScript
Includes a getClientInfo() function
Has a main() function for the core logic
Uses SV.getMainEditor().getSelection() to get selected notes
Accesses notes via selection.getSelectedNotes()
Modifies notes using methods like getLyrics() and setLyrics()
Accesses and modifies phonemes using getPhonemes() and setPhonemes()
Directly modifies the phonemes string in the Note Properties (found in the UI under Timing and Phonemes section)
Handles cases where phonemes might be null or undefined
Uses string manipulation methods (like startsWith(), replace()) for phoneme modifications when necessary
Ends with SV.finish()
Saved as a .js file and placed in the Synthesizer V scripts folder to be scanned by the application before it can appear in the "scripts" dropdown allowing users to select and invoke it
Omit the "category" line in the getClientInfo() function
When adding phonemes (e.g., "sil"), ensure to add a space after the new phoneme
When removing phonemes, use regular expressions to handle potential whitespace (e.g., /^sil\s*/)
Please provide a script that [describe your desired functionality] following this structure.
2. Note that my particular scripts had to do with selected notes, etc. so that’s the information it needed to remember via the prompt I listed. If your script deals with different issues, it may need to figure out then remember different information for next time. Do not assume it will remember anything next time you interact with it, so save the prompt for future use.
10) Congratulations. You now have access to unlimited free scripts without needing to know anything about javascript AND if there were any snags at all, you get to skip them next time so it will be even faster.