gibber-cc / gibberwocky

Streamlined live coding for Ableton Live, Max/MSP/Jitter, and MIDI
http://gibberwocky.cc
MIT License
174 stars 11 forks source link

Question about namespaces #3

Open ErnestoAzuero opened 7 years ago

ErnestoAzuero commented 7 years ago

Hello, I am newbie in coding and I have been working Gibber with Max/Msp and I love to live coding with it. Although, problems emerge when you begin to go experiment and try to go deeper.

I want to know how can I repeat or change numbers and messages inside namespaces. My patch is very simple and is made just for testing routing and coding with it: [gibber] --->[route A B C]--A-->[Live.toggle] the idea is to be able to make the transport object to go on and of with this configuration. Code: timetog = namespace ('A') timetog (1) timetog ('1') timetog ('0') timetog ('1')

When I do all the code this message pops out on the console "error with user submitted code: TypeError: Cannot read property 'textMarkers' of undefined"

This is a problem if I want to make variations on things attached to the namespaces, because you can not go further if you make two or three changes. If someone could teach me how can I avoid this or if someone can explain to me in more detail how to manage this kind of variations.

Thanx

:) E.

charlieroberts commented 7 years ago

Somebody else brought up a similar problem in an email to me... I'm going to take a look at it now and see if I can fix it. - Charlie

charlieroberts commented 7 years ago

Actually, your example works fine for me; strange. Are you sure that this code, by itself, throws an error for you? It works fine for me if I execute it both line by line or all at once.

grrrwaaa commented 7 years ago

On phone so cant check right now, but maybe one thing to watch for is that gibberwocky depends on Max’s main transport for timing, so if you’re starting & stopping a transport it needs to not be the main one

Graham

On Jul 22, 2017, at 1:56 PM, charlie roberts notifications@github.com wrote:

Actually, your example works fine for me; strange. Are you sure that this code, by itself, throws an error for you? It works fine for me if I execute it both line by line or all at once.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

ErnestoAzuero commented 7 years ago

Actually, your example works fine for me; strange. Are you sure that this code, by itself, throws an error for you? It works fine for me if I execute it both line by line or all at once.

Hi Charlie. Well, Now it does not send me the pop up error on the console, but it does not trigger the toggle the second time.

ErnestoAzuero commented 7 years ago

On phone so cant check right now, but maybe one thing to watch for is that gibberwocky depends on Max’s main transport for timing, so if you’re starting & stopping a transport it needs to not be the main one

Graham I see your point but, this message appears very often when I do "refresh" a part of the code. One thing I would like to precise, I always use private mode on my browser... Could it be an issue?

Thanx for the help guys! I want to master this! :)