H6 Snippets for Visual Studio Code

Post topics about HALion scripting.
Post Reply
misohoza
Member
Posts: 834
Joined: Sun Oct 05, 2014 12:18 am
Contact:

H6 Snippets for Visual Studio Code

Post by misohoza » Sun Nov 12, 2017 3:51 pm

Anyone using Visual Studio Code as external script editor?

I wanted to share my user snippets. They contain pre-defined functions used by Halion and also modulation source and destination type names.
I packaged the snippets as extension. Just search for "H6 Snippets" in vscode extensions.

Image
Win 10 Home, 64 bit, 8 gb ram,
Cubase Pro 9, Wavelab Pro 9, Halion 6, Dorico,
NI Komplete 10 Ultimate, Ozone 7,
UR 44

AposMus
Junior Member
Posts: 180
Joined: Fri Nov 14, 2014 11:41 am
Contact:

Re: H6 Snippets for Visual Studio Code

Post by AposMus » Fri Nov 17, 2017 8:43 am

I'm using brackets and tinkered with the lua extension to include Halion function for highlighting, but not auto-completion.

Think I'm going to give Visual Studio Code a try though, because this will save major amounts of time.
Cubase Pro 8.5.2
Halion 6
HSO
Padshop Pro
Dark Planet
Windows 7 64bit, AMD Phenom IIx6 1055t, 8GB Ram, Gigabyte GA-880G-UD3H F2, Nvidia GeForce GTS450
https://dewetvanderspuy.co.za/

AposMus
Junior Member
Posts: 180
Joined: Fri Nov 14, 2014 11:41 am
Contact:

Re: H6 Snippets for Visual Studio Code

Post by AposMus » Fri Nov 17, 2017 11:54 am

I'm liking VSC a lot. Seems more polished than Brackets and the lua integration is much better.

Your snippets are the best thing since butter on toast BTW. Really enjoying it.
Cubase Pro 8.5.2
Halion 6
HSO
Padshop Pro
Dark Planet
Windows 7 64bit, AMD Phenom IIx6 1055t, 8GB Ram, Gigabyte GA-880G-UD3H F2, Nvidia GeForce GTS450
https://dewetvanderspuy.co.za/

misohoza
Member
Posts: 834
Joined: Sun Oct 05, 2014 12:18 am
Contact:

Re: H6 Snippets for Visual Studio Code

Post by misohoza » Fri Nov 17, 2017 1:43 pm

Hi Aposmus,

I'm glad you like it.

I was using Zerobrane studio which I think is a great lua editor with debugger, but not that easy to expand or customize. Unless you really know what you're doing.

In VSC you can easily expand the extension with your own user snippets. They can also be more complex and can be assigned to key command.

I've assigned (Shift+I then 1) to insert the following, where I can tab through the "$" placeholders.

Code: Select all

for i, $ in ipairs($) do
    $
end
Win 10 Home, 64 bit, 8 gb ram,
Cubase Pro 9, Wavelab Pro 9, Halion 6, Dorico,
NI Komplete 10 Ultimate, Ozone 7,
UR 44

AposMus
Junior Member
Posts: 180
Joined: Fri Nov 14, 2014 11:41 am
Contact:

Re: H6 Snippets for Visual Studio Code

Post by AposMus » Fri Nov 17, 2017 4:46 pm

Yes, Brackets also has lots of expansion capabilities, but not in any user friendly way.

Have you tried this Lua extension for VSC https://marketplace.visualstudio.com/it ... eyring.Lua
It does great auto completing and has functions like "for" for normal loop, "fori" for ipairs and "forp" for pairs and many others.
Cubase Pro 8.5.2
Halion 6
HSO
Padshop Pro
Dark Planet
Windows 7 64bit, AMD Phenom IIx6 1055t, 8GB Ram, Gigabyte GA-880G-UD3H F2, Nvidia GeForce GTS450
https://dewetvanderspuy.co.za/

misohoza
Member
Posts: 834
Joined: Sun Oct 05, 2014 12:18 am
Contact:

Re: H6 Snippets for Visual Studio Code

Post by misohoza » Sat Nov 18, 2017 2:50 pm

AposMus wrote:
Fri Nov 17, 2017 4:46 pm
Yes, Brackets also has lots of expansion capabilities, but not in any user friendly way.

Have you tried this Lua extension for VSC https://marketplace.visualstudio.com/it ... eyring.Lua
It does great auto completing and has functions like "for" for normal loop, "fori" for ipairs and "forp" for pairs and many others.
:D This one is one of the most popular. Yes, I've tried it and it's great. But I find the autocomplete to be "too good" at times. So you end up deleting and changing a lot of things afterwards.

Another thing I've noticed is that if you have too many extensions active at the same time they can cause conflicts.
Win 10 Home, 64 bit, 8 gb ram,
Cubase Pro 9, Wavelab Pro 9, Halion 6, Dorico,
NI Komplete 10 Ultimate, Ozone 7,
UR 44

AposMus
Junior Member
Posts: 180
Joined: Fri Nov 14, 2014 11:41 am
Contact:

Re: H6 Snippets for Visual Studio Code

Post by AposMus » Sun Nov 19, 2017 10:56 pm

I'm busy with a Halion function highlighter for VS Code. Will share the link when I'm done, if anyone is interested.

It helps a lot if you can quickly identify Halion Script functions by colour in a long script.
Cubase Pro 8.5.2
Halion 6
HSO
Padshop Pro
Dark Planet
Windows 7 64bit, AMD Phenom IIx6 1055t, 8GB Ram, Gigabyte GA-880G-UD3H F2, Nvidia GeForce GTS450
https://dewetvanderspuy.co.za/

User avatar
abject39
Member
Posts: 303
Joined: Sat Jan 17, 2015 8:20 pm
Location: Ventura, Ca
Contact:

Re: H6 Snippets for Visual Studio Code

Post by abject39 » Sun Jan 07, 2018 2:18 am

Awesome! You're the real MVP!
My vision is uncompromising: to transcend my clients dreams by mesmerizing their audience with the world's finest audio arrangements and products.

Post Reply

Return to “Halion Scripting”

Who is online

Users browsing this forum: No registered users and 4 guests