2 |
* * |
* * |
3 |
* libgig - C++ cross-platform Gigasampler format file access library * |
* libgig - C++ cross-platform Gigasampler format file access library * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003-2016 by Christian Schoenebeck * |
* Copyright (C) 2003-2017 by Christian Schoenebeck * |
6 |
* <cuse@users.sourceforge.net> * |
* <cuse@users.sourceforge.net> * |
7 |
* * |
* * |
8 |
* This library is free software; you can redistribute it and/or modify * |
* This library is free software; you can redistribute it and/or modify * |
65 |
# define CHUNK_ID_SCSL 0x4c534353 // own gig format extension |
# define CHUNK_ID_SCSL 0x4c534353 // own gig format extension |
66 |
#endif // WORDS_BIGENDIAN |
#endif // WORDS_BIGENDIAN |
67 |
|
|
68 |
|
// just symbol prototyping (since Serialization.h not included by default here) |
69 |
|
namespace Serialization { class Archive; } |
70 |
|
|
71 |
/** Gigasampler/GigaStudio specific classes and definitions */ |
/** Gigasampler/GigaStudio specific classes and definitions */ |
72 |
namespace gig { |
namespace gig { |
73 |
|
|
194 |
|
|
195 |
type_t type; ///< Controller type |
type_t type; ///< Controller type |
196 |
uint controller_number; ///< MIDI controller number if this controller is a control change controller, 0 otherwise |
uint controller_number; ///< MIDI controller number if this controller is a control change controller, 0 otherwise |
197 |
|
|
198 |
|
void serialize(Serialization::Archive* archive); |
199 |
}; |
}; |
200 |
|
|
201 |
/** |
/** |
309 |
uint8_t out_start; ///< Start position of fade out. |
uint8_t out_start; ///< Start position of fade out. |
310 |
uint8_t out_end; ///< End postition of fade out. |
uint8_t out_end; ///< End postition of fade out. |
311 |
#endif // WORDS_BIGENDIAN |
#endif // WORDS_BIGENDIAN |
312 |
|
|
313 |
|
void serialize(Serialization::Archive* archive); |
314 |
}; |
}; |
315 |
|
|
316 |
/** Reflects the current playback state for a sample. */ |
/** Reflects the current playback state for a sample. */ |
493 |
DimensionRegion(RIFF::List* _3ewl, const DimensionRegion& src); |
DimensionRegion(RIFF::List* _3ewl, const DimensionRegion& src); |
494 |
~DimensionRegion(); |
~DimensionRegion(); |
495 |
void CopyAssign(const DimensionRegion* orig, const std::map<Sample*,Sample*>* mSamples); |
void CopyAssign(const DimensionRegion* orig, const std::map<Sample*,Sample*>* mSamples); |
496 |
|
void serialize(Serialization::Archive* archive); |
497 |
friend class Region; |
friend class Region; |
498 |
|
friend class Serialization::Archive; |
499 |
private: |
private: |
500 |
typedef enum { ///< Used to decode attenuation, EG1 and EG2 controller |
typedef enum { ///< Used to decode attenuation, EG1 and EG2 controller |
501 |
// official leverage controllers as they were defined in the original Gigasampler/GigaStudio format: |
// official leverage controllers as they were defined in the original Gigasampler/GigaStudio format: |
1023 |
void SetScriptAsText(const String& text); |
void SetScriptAsText(const String& text); |
1024 |
void SetGroup(ScriptGroup* pGroup); |
void SetGroup(ScriptGroup* pGroup); |
1025 |
ScriptGroup* GetGroup() const; |
ScriptGroup* GetGroup() const; |
1026 |
|
void CopyAssign(const Script* orig); |
1027 |
protected: |
protected: |
1028 |
Script(ScriptGroup* group, RIFF::Chunk* ckScri); |
Script(ScriptGroup* group, RIFF::Chunk* ckScri); |
1029 |
virtual ~Script(); |
virtual ~Script(); |