Csound Csound-dev Csound-tekno Search About

Re: syntax definition files for Smultron

Date2007-09-05 17:49
FromLuís Antunes Pena
SubjectRe: syntax definition files for Smultron
it looks great!
thanks for sharing this.
cheers,
luís

peiman schrieb:
> Hi,
>
> In case someone's interested...
> I have made a csound syntax definition file for the free text-editor
> Smultron (OS X).
>
> http://smultron.sourceforge.net/
>
> In addition to syntax highlighting Smultron allows you create code snippets
> and run system-commands (so one can run the csd files from within the
> program and even assign keyboard shortcuts to each command).
>
> If you are interested you can download the instructions and the syntax file
> here:
>
> http://www.esnips.com/web/CsoundSmultron
>
>
> The folder also contains the file named "SynthCommands.smultronCommands"
> that you can import into Smultron via "tools>handle commands>import
command"
> menu. This is for accessing basic csound and rtcmix commands (with keyboard
> shortcuts)
>
> There is also a file named "CsoundSnippets.smultronSnippets" that can be
> imported into Smultron via "tools>handle snippets>import snippets" menu for
> a couple of useful csound code snippets and a csd template.
>
> Hope this is helpful.
>
> Best
> Peiman
>




-- 
Luís Antunes Pena
http://icem.folkwang-hochschule.de/~pena

Date2007-09-05 19:41
Frompeiman
SubjectRe: syntax definition files for Smultron
Hello again,

I have just found the command for getting the manual page of selected
opcodes open from within Smultrol (as Dr Boulanger suggested), and it works
like a beauty!


#!/bin/bash

for WORD in `cat %%s` ; do open
"/Library/Frameworks/CsoundLib.framework/Versions/5.1/Resources/Manual/"$WORD".html"
; done


You can add it by going to "tools->handle command->show commands window" and
add command. The command (bellow) must be printed on one line (with
#!/bin/bash being the very first line!). There you can also add a keyboard
shortcut (I have apple+h). This will open the manual page of the selected
opcode with your default browser assuming that your manual is saved in the
directory listed, if not just change the directory from the one bellow. If
you prefere a different browser then just change the command "open" to: 

open -a "name of browser application"

Best
Peiman










Luís Antunes Pena-2 wrote:
> 
> it looks great!
> thanks for sharing this.
> cheers,
> luís
> 
> peiman schrieb:
>> Hi,
>>
>> In case someone's interested...
>> I have made a csound syntax definition file for the free text-editor
>> Smultron (OS X).
>>
>> http://smultron.sourceforge.net/
>>
>> In addition to syntax highlighting Smultron allows you create code
>> snippets
>> and run system-commands (so one can run the csd files from within the
>> program and even assign keyboard shortcuts to each command).
>>
>> If you are interested you can download the instructions and the syntax
>> file
>> here:
>>
>> http://www.esnips.com/web/CsoundSmultron
>>
>>
>> The folder also contains the file named "SynthCommands.smultronCommands"
>> that you can import into Smultron via "tools>handle commands>import
> command"
>> menu. This is for accessing basic csound and rtcmix commands (with
>> keyboard
>> shortcuts)
>>
>> There is also a file named "CsoundSnippets.smultronSnippets" that can be
>> imported into Smultron via "tools>handle snippets>import snippets" menu
>> for
>> a couple of useful csound code snippets and a csd template.
>>
>> Hope this is helpful.
>>
>> Best
>> Peiman
>>
> 
> 
> 
> 
> -- 
> Luís Antunes Pena
> http://icem.folkwang-hochschule.de/~pena
> --
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
> 
> 

-- 
View this message in context: http://www.nabble.com/syntax-definition-files-for-Smultron-tf4379118.html#a12508456
Sent from the Csound - General mailing list archive at Nabble.com.

Date2007-09-05 21:40
From"Dr. Richard Boulanger"
SubjectRe: syntax definition files for Smultron
SUPER.

-dB

On Sep 5, 2007, at 2:41 PM, peiman wrote:

>
> Hello again,
>
> I have just found the command for getting the manual page of selected
> opcodes open from within Smultrol (as Dr Boulanger suggested), and  
> it works
> like a beauty!
>
>
> #!/bin/bash
>
> for WORD in `cat %%s` ; do open
> "/Library/Frameworks/CsoundLib.framework/Versions/5.1/Resources/ 
> Manual/"$WORD".html"
> ; done
>
>
> You can add it by going to "tools->handle command->show commands  
> window" and
> add command. The command (bellow) must be printed on one line (with
> #!/bin/bash being the very first line!). There you can also add a  
> keyboard
> shortcut (I have apple+h). This will open the manual page of the  
> selected
> opcode with your default browser assuming that your manual is saved  
> in the
> directory listed, if not just change the directory from the one  
> bellow. If
> you prefere a different browser then just change the command "open"  
> to:
>
> open -a "name of browser application"
>
> Best
> Peiman
>
>
>
>
>
>
>
>
>
>
> Luís Antunes Pena-2 wrote:
>>
>> it looks great!
>> thanks for sharing this.
>> cheers,
>> luís
>>
>> peiman schrieb:
>>> Hi,
>>>
>>> In case someone's interested...
>>> I have made a csound syntax definition file for the free text-editor
>>> Smultron (OS X).
>>>
>>> http://smultron.sourceforge.net/
>>>
>>> In addition to syntax highlighting Smultron allows you create code
>>> snippets
>>> and run system-commands (so one can run the csd files from within  
>>> the
>>> program and even assign keyboard shortcuts to each command).
>>>
>>> If you are interested you can download the instructions and the  
>>> syntax
>>> file
>>> here:
>>>
>>> http://www.esnips.com/web/CsoundSmultron
>>>
>>>
>>> The folder also contains the file named  
>>> "SynthCommands.smultronCommands"
>>> that you can import into Smultron via "tools>handle commands>import
>> command"
>>> menu. This is for accessing basic csound and rtcmix commands (with
>>> keyboard
>>> shortcuts)
>>>
>>> There is also a file named "CsoundSnippets.smultronSnippets" that  
>>> can be
>>> imported into Smultron via "tools>handle snippets>import  
>>> snippets" menu
>>> for
>>> a couple of useful csound code snippets and a csd template.
>>>
>>> Hope this is helpful.
>>>
>>> Best
>>> Peiman
>>>
>>
>>
>>
>>
>> -- 
>> Luís Antunes Pena
>> http://icem.folkwang-hochschule.de/~pena
>> --
>> Send bugs reports to this list.
>> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/syntax- 
> definition-files-for-Smultron-tf4379118.html#a12508456
> Sent from the Csound - General mailing list archive at Nabble.com.
>
> --
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk