scide + lang: add *new method for Document in SCIDE

This also adds a *getQUuid method to ScIDE, which is used to generate the document's mID in the lang at creation time

Signed-off-by: Scott Wilson <i@scottwilson.ca>
lang: Add *executeAsyncResponse method to ScIDEDocument

This provides a generic interface for callbacks for asynchronous Document requests to the IDE. Callback functions are stored in a dict held in a classvar using a uuid as a key.

Signed-off-by: Scott Wilson <i@scottwilson.ca>
lang + scide: Add getText and getChar methods to ScIDEDocument

Signed-off-by: Scott Wilson <i@scottwilson.ca>
lang + scide: Add methods to set text in an ScIDEDocument

Signed-off-by: Scott Wilson <i@scottwilson.ca>
scsynth: support for receiving nested OSC bundles.

scsynth right now cannot receive nested OSC bundles, this patch adds
support for it. To play nicely with the current way of scheduling
bundles, it does so by unrolling(unnesting) nested bundles  before
handing them over via the FIFO to the realtime thread.

the example incoming packet with nested bundles:

[ #bundle IMMEDIATE
	[ /tick, 13]
	[ #bundle IMMEDIATE
		[ /s_new, 1000, ...]
	]
	[ /tock, 14]
	[ #bundle +1ms
		[ /n_set, 1000, 'gate', 1, ...]
	]
]

is unrolled to three individual packets each consisting of a single bundle:

[ #bundle IMMEDIATE
	[ /tick, 13]
	[ /tock, 14]
]

[ #bundle IMMEDIATE
	[ /s_new, 1000, ...]
]

[ #bundle +1ms
	[ /n_set, 1000, 'gate', 1, ...]
]

Signed-off-by: Hanspeter Portner <agenthp@users.sf.net>
scsynth: OSC bundles support FIXES.

* declared counter in for loop
* removed duplicated code for "FIFO full" error reporting
Merge pull request #914 from ventosus/topic/scsynth_osc_nested_bundles

scsynth: support for receiving nested OSC bundles.
scide: Add missing checks in get and set text methods

Signed-off-by: Scott Wilson <i@scottwilson.ca>
lang + scide: sync document list at library compile

Signed-off-by: Scott Wilson <i@scottwilson.ca>
scide: make ide call closed for manually closed documents

Signed-off-by: Scott Wilson <i@scottwilson.ca>
Merge pull request #917 from miguel-negrao/master

linux readme: qt5 limitation
scide: IDE informs lang when a document is opened by a user

Signed-off-by: Scott Wilson <i@scottwilson.ca>
scdoc: improve AbstractFunction documentation
lang + scide: Keep current Document synced

This should also take care of setting the doc envir and firing actions

Signed-off-by: Scott Wilson <i@scottwilson.ca>
class library: permit simple functions or streams to act as a dispatch for EnvironmentRedirects
lang + scide: Sync Text and Title of ScIDEDocuments when opened

Signed-off-by: Scott Wilson <i@scottwilson.ca>
scide: never close a session with unsaved documents

[fixes #899]
Update Object.sc

By using the same .dup method as Function, the Object:dup improves considerably in speed.
supernova: work around possible clang bug

Signed-off-by: Tim Blechmann <tim@klingt.org>
supernova: aligned malloc - prefer SSE2 implementation

Signed-off-by: Tim Blechmann <tim@klingt.org>