justin = {
main feed
,
music
,
code
= {
cockos
,
reaper
,
wdl
,
ninjam
,
jsfx
,
more
}
,
askjf
,
pubkey
};
Ask Justin Frankel
No reasonable question unanswered since 2009!
Suggested topics: programming, music, sleep, coffee, etc.
Note: please do not ask questions about REAPER features, bugs or scheduling, use the
forums
instead.
Name:
Ask:
Human (enter yes):
[
back to index
] | [
unreplied
] | [
replied
] | [
recent comments
] | [
all
]
Question:
I am trying to store the state of a audio plugin to a ProjectStateContext directly. I'm running into an issue trying to write a large text chunk to the context. Any pointers? Do I need to break it up somehow?
Asked by ToneCre8 (73.0.162.x) on February 6 2024, 4:39pm
Reply on February 7 2024, 1:16am:
cfg_encode_textblock is probably a good idea, unless you need newline encoding preserved, in which case you'd probably be better of base64 encoding it
Comments:
Posted by ToneCre8 (73.0.162.x) on February 7 2024, 5:37am:
The cfg_encode_binary method means I don't have to fuss about text encoding at all! Thank you!
Posted by
Justin
on February 7 2024, 8:14pm:
If it is text and you don't need CRLF preserved, cfg_encode_textblock is nicer for the user who might be reading the project file... :)
Posted by
Justin
on February 7 2024, 8:15pm:
ah I forgot, if you need CRLF preserved, can use cfg_encode_textblock2() which will encode line ending info
Posted by ToneCre8 (73.0.162.x) on February 14 2024, 4:53pm:
Thank you Justin!
Comment:
Your Name:
-- Site Owner's Name:
(for human-verification) Comment:
[
back to index
] | [
unreplied
] | [
replied
] | [
recent comments
] | [
all
]
Copyright 2024 Justin Frankel
.
|
RSS