GUIDOLib  1.7.7
A Music Score Rendering Engine
GUIDOFactory.h
Go to the documentation of this file.
1 #ifndef GUIDOFactory_H
2 #define GUIDOFactory_H
3 
4 /*
5  GUIDO Library
6  Copyright (C) 2003, 2004 Grame
7 
8  This Source Code Form is subject to the terms of the Mozilla Public
9  License, v. 2.0. If a copy of the MPL was not distributed with this
10  file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 
12  Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
13  research@grame.fr
14 
15 */
16 
17 #include "GUIDOExport.h"
18 #include "GUIDOEngine.h"
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
48 typedef void * ARFactoryHandler;
49 
50 
51 // ----------------------------------------------------------------------------
58 
59 // ----------------------------------------------------------------------------
65 
66 // ----------------------------------------------------------------------------
76 
77 // ----------------------------------------------------------------------------
95 
96 
97 // ----------------------------------------------------------------------------
109 
110 // ----------------------------------------------------------------------------
122 
123 // ----------------------------------------------------------------------------
134 
135 // ----------------------------------------------------------------------------
145 
146 // ----------------------------------------------------------------------------
155 // todo check semantic and rename
156  GUIDOAPI GuidoErrCode GuidoFactoryInsertCommata( ARFactoryHandler inFactory ); // is it a correct name ?
157 
158 // ----------------------------------------------------------------------------
167  GUIDOAPI GuidoErrCode GuidoFactoryOpenEvent( ARFactoryHandler inFactory, const char * inEventName );
168 
169 // ----------------------------------------------------------------------------
180 
181 // ----------------------------------------------------------------------------
188 
189 // ----------------------------------------------------------------------------
196 
197 // ----------------------------------------------------------------------------
204 
205 // ----------------------------------------------------------------------------
212 
213 // ----------------------------------------------------------------------------
226 
227 // ----------------------------------------------------------------------------
239  GUIDOAPI GuidoErrCode GuidoFactorySetDuration( ARFactoryHandler inFactory, int numerator, int denominator );
240 
241 // ----------------------------------------------------------------------------
242 /* \brief Add a tag to the current voice.
243 
244  \param inFactory a handler to a Guido Factory (created with GuidoFactoryOpen)
245  \param name: the tag name
246  \param tagID: is the number that the parser generates for advanced GUIDO
247  \return an error code.
248 */
249  GUIDOAPI GuidoErrCode GuidoFactoryOpenTag( ARFactoryHandler inFactory, const char * name, long tagID );
250 
251 // ----------------------------------------------------------------------------
252 /* \brief Add a tag to the current voice.
253 
254  \param inFactory a handler to a Guido Factory (created with GuidoFactoryOpen)
255  \param name: the tag name
256  \param tagID: is the number that the parser generates for advanced GUIDO
257  \return an error code.
258 */
259  GUIDOAPI GuidoErrCode GuidoFactoryOpenRangeTag( ARFactoryHandler inFactory, const char * name, long tagID );
260 
261 
262 // ----------------------------------------------------------------------------
272 
273 // ----------------------------------------------------------------------------
286 
287 // ----------------------------------------------------------------------------
295 
296 // ----------------------------------------------------------------------------
304 
305 // ----------------------------------------------------------------------------
313 
314 // ----------------------------------------------------------------------------
321  GUIDOAPI GuidoErrCode GuidoFactorySetParameterName( ARFactoryHandler inFactory, const char * name );
322 
323 // ----------------------------------------------------------------------------
338  GUIDOAPI GuidoErrCode GuidoFactorySetParameterUnit( ARFactoryHandler inFactory, const char * unit );
343 #ifdef __UseOldGUIDOFactory__
344 // ----------------------------------------------------------------------------
352  GUIDOAPI GuidoErrCode GuidoFactoryCreateTag( ARFactoryHandler inFactory, const char * inTagName, long tagID );
353 
354 // ----------------------------------------------------------------------------
359  GUIDOAPI GuidoErrCode GuidoFactoryIsRangeTag( ARFactoryHandler inFactory );
360 
361 #endif
362 
363 #ifdef __cplusplus
364 }
365 #endif
366 
367 #endif
GuidoFactorySetEventAccidentals
GuidoErrCode GuidoFactorySetEventAccidentals(ARFactoryHandler inFactory, int accident)
Sets the accidentals of the current event.
GuidoFactoryOpenTag
GuidoErrCode GuidoFactoryOpenTag(ARFactoryHandler inFactory, const char *name, long tagID)
GuidoFactorySetParameterName
GuidoErrCode GuidoFactorySetParameterName(ARFactoryHandler inFactory, const char *name)
Defines the name (when applicable) of the last added tag-parameter.
GuidoFactoryOpenChord
GuidoErrCode GuidoFactoryOpenChord(ARFactoryHandler inFactory)
Creates and open a new chord.
GuidoFactoryOpen
GuidoErrCode GuidoFactoryOpen(ARFactoryHandler *outFactory)
Opens the Guido Factory.
GuidoFactoryAddTagParameterInt
GuidoErrCode GuidoFactoryAddTagParameterInt(ARFactoryHandler inFactory, int val)
Adds a new integer parameter to the current tag.
GuidoFactoryOpenEvent
GuidoErrCode GuidoFactoryOpenEvent(ARFactoryHandler inFactory, const char *inEventName)
Creates and opens a new event (note or rest).
GuidoFactoryAddFlat
GuidoErrCode GuidoFactoryAddFlat(ARFactoryHandler inFactory)
Add a flat to the current event.
GUIDOEngine.h
GuidoFactorySetOctave
GuidoErrCode GuidoFactorySetOctave(ARFactoryHandler inFactory, int octave)
Sets the register (octave) of the current event.
GuidoFactoryOpenVoice
GuidoErrCode GuidoFactoryOpenVoice(ARFactoryHandler inFactory)
Creates and opens a new voice.
GuidoFactoryClose
void GuidoFactoryClose(ARFactoryHandler inFactory)
Closes the Guido Factory.
ARFactoryHandler
void * ARFactoryHandler
Definition: GUIDOFactory.h:48
GuidoFactorySetParameterUnit
GuidoErrCode GuidoFactorySetParameterUnit(ARFactoryHandler inFactory, const char *unit)
Defines the unit of the last added tag-parameter.
GUIDOAPI
#define GUIDOAPI
Definition: GUIDOExport.h:39
GuidoFactorySetDuration
GuidoErrCode GuidoFactorySetDuration(ARFactoryHandler inFactory, int numerator, int denominator)
Sets the duration of the current event.
GuidoFactoryOpenMusic
GuidoErrCode GuidoFactoryOpenMusic(ARFactoryHandler inFactory)
Creates and opens a new music score.
GuidoFactoryAddSharp
GuidoErrCode GuidoFactoryAddSharp(ARFactoryHandler inFactory)
Adds a sharp to the current event.
GuidoErrCode
GuidoErrCode
The guido error codes list.
Definition: GUIDOEngine.h:211
GUIDOExport.h
GuidoFactoryAddTagParameterString
GuidoErrCode GuidoFactoryAddTagParameterString(ARFactoryHandler inFactory, const char *val)
Adds a new string parameter to the current tag.
GuidoFactoryAddTagParameterFloat
GuidoErrCode GuidoFactoryAddTagParameterFloat(ARFactoryHandler inFactory, double val)
Adds a new floating-point parameter to the current tag.
GuidoFactoryCloseMusic
ARHandler GuidoFactoryCloseMusic(ARFactoryHandler inFactory)
Closes the current music score.
GuidoFactoryOpenRangeTag
GuidoErrCode GuidoFactoryOpenRangeTag(ARFactoryHandler inFactory, const char *name, long tagID)
GuidoFactorySetEventDots
GuidoErrCode GuidoFactorySetEventDots(ARFactoryHandler inFactory, int dots)
Sets the number of dots the current event.
GuidoFactoryCloseEvent
GuidoErrCode GuidoFactoryCloseEvent(ARFactoryHandler inFactory)
Closes the current event.
GuidoFactoryEndTag
GuidoErrCode GuidoFactoryEndTag(ARFactoryHandler inFactory)
Indicates the end of a range tag.
ARHandler
struct NodeAR * ARHandler
Definition: GUIDOEngine.h:36
GuidoFactoryInsertCommata
GuidoErrCode GuidoFactoryInsertCommata(ARFactoryHandler inFactory)
Begins a new chord note commata.
GuidoFactoryCloseVoice
GuidoErrCode GuidoFactoryCloseVoice(ARFactoryHandler inFactory)
Closes the current voice.
GuidoFactoryCloseChord
GuidoErrCode GuidoFactoryCloseChord(ARFactoryHandler inFactory)
Closes the current chord.
GuidoFactoryCloseTag
GuidoErrCode GuidoFactoryCloseTag(ARFactoryHandler inFactory)
Closes the current tag.

Guido Project Copyright © 2019 Grame-CNCM