Multiple TiddlerField(s) for audio files?

189 views
Skip to first unread message

Shay Shaked

unread,
Jun 19, 2016, 11:23:49 PM6/19/16
to TiddlyWiki
It's past my bedtime, and I'm trying to record a journal entry and this might make no sense what's so ever but here goes. 




Earlier in the day I recorded myself walking on my phone. I then created 5 MP3 files from my recordings, about 20MB in total. I wanted to embed them into the day's journal tiddler, but discovered that I have to create a tiddler to contain the audio file, or at least, a link to an external audio file. OK. Did a bit of research, found out how to do that. Now what I will do is to create a "child" tiddler under the journal entry with the recordings. 

Now.. here are my questions. 

I have five files. I want the recordings to show up all in one tinder, so it will look something like this: 
[---audio 1---]
[---audio 2---]
[---audio 3---]

etc... 
but when I click "add new field" as required, the previous one is replaced. I want it to be added so I can add another recording. Is that possible? I understand that I could have a list like that on the "parent" journal tiddler itself because it will summon the audio tiddlers, of which I can have five.. however, for sake of organization, I'd rather have only one audio tiddler, with all of them. Is this possible? 

Then the next question is, is this even the recommended way to do so? 

Now the last and the most open ended question.. I just stumbled upon the knowledge of creating a media tiddler that summons and external file using a link. This is potentially very cool. Can I do the same for, say, images, so the tiddler I write doesn't have the actual path but instead calls for an "image" tiddler? and, if that is the case, can I have a "media" tiddler of sorts that I can summon into the parent tiddler? I am not sure how I could break up the images if they are all in one tiddler, so it makes sense in the parent tiddler though (see, I told you guys this might not make sense). I will try to illustrate again: 

Title: MEDIA TIDDLER

pic 1
pic 2
pic 3

and then: 

Title: PARENT TIDDLER

text.. bla bla
bla bla
 
pic 1

text.. bla bla..
pic 2

bla bla bla..


See the problem above? if I call that tiddler, it will throw in everything at once. Assuming, of course, I can call more than one content piece, as indicated in question 1...


whew! OK. Def need sleep. How would you guys go at it? 

Thanks!!! 

PMario

unread,
Jun 20, 2016, 9:06:17 AM6/20/16
to tiddl...@googlegroups.com
On Monday, June 20, 2016 at 5:23:49 AM UTC+2, Shay Shaked wrote:
but when I click "add new field" as required, the previous one is replaced. I want it to be added so I can add another recording. Is that possible? I understand that I could have a list like that on the "parent" journal tiddler itself because it will summon the audio tiddlers, of which I can have five.. however, for sake of organization, I'd rather have only one audio tiddler, with all of them. Is this possible? 

no ...

TW is optimized for tiddlers as the smallest content container. You can tag your audio tiddlers and list them with the list-links macro: http://tiddlywiki.com/#list-links%20Macro%20(Examples) or the list-widget.

 
Then the next question is, is this even the recommended way to do so? 

no ... see above.
 
Now the last and the most open ended question.. I just stumbled upon the knowledge of creating a media tiddler that summons and external file using a link. This is potentially very cool. Can I do the same for, say, images, so the tiddler I write doesn't have the actual path but instead calls for an "image" tiddler?
and, if that is the case, can I have a "media" tiddler of sorts that I can summon into the parent tiddler?

transclusion is the key word here: http://tiddlywiki.com/#Transclusion%20Basic%20Usage
 
I am not sure how I could break up the images if they are all in one tiddler, so it makes sense in the parent tiddler though (see, I told you guys this might not make sense). I will try to illustrate again: 

again one tiddler = one image. ... You'll find out, that this mechanism is so much more powerful.


 
Title: MEDIA TIDDLER

Some intro text in the "root" media tiddler

<<list-links filter:"[tag[myImage]]">>

 
pic 1
pic 2
pic 3

one tiddler per image and tag them "myImage" to list them in any other context.

or use


pic 1

{{pic1.jpg}}

 
text.. bla bla..

{{pic2.jpg}}

bla bla bla..


See the problem above?

yes. no problem :)

 
if I call that tiddler, it will throw in everything at once. Assuming, of course, I can call more than one content piece, as indicated in question 1...

The list links macro is a very simple implementation to get a list. ... If you need a different representation we can build them dynamically with the list-widget.

Have a closer look about tagging. http://tiddlywiki.com/#Tagging:Tagging%20%5B%5BWorking%20with%20TiddlyWiki%5D%5D  It's a key feature of TW.

have fun!
mario


Shay Shaked

unread,
Jun 21, 2016, 7:03:14 AM6/21/16
to TiddlyWiki
PMario, 

thank you for all the links. I have to carefully ready through the examples to understand what's going on there. So you're saying, I should go ahead and create the five audio tiddlers (that point to an external file) and then just display them in a list in another tiddler. This can work. I guess my concern is that I will end up having a bunch of these tiddlers that contain nothing but a single piece of media (be it audio, photo or a video) with no organization... which of course, is simple to fix with tags. just seems like there's a lot of work to do there. Hmmmm.  

PMario

unread,
Jun 21, 2016, 6:58:20 PM6/21/16
to TiddlyWiki
On Tuesday, June 21, 2016 at 1:03:14 PM UTC+2, Shay Shaked wrote:
thank you for all the links. I have to carefully ready through the examples to understand what's going on there. So you're saying, I should go ahead and create the five audio tiddlers (that point to an external file) and then just display them in a list in another tiddler. This can work. I guess my concern is that I will end up having a bunch of these tiddlers that contain nothing but a single piece of media (be it audio, photo or a video) with no organization... which of course, is simple to fix with tags. just seems like there's a lot of work to do there. Hmmmm.  

Yea, it's a bit more work at the beginning, but IMO it will pay back in the long run. ... Especially, the usecase you described, will be very hard, if not impossible to do with TW. Because it's not designed to work that way :)

-m

Mark S.

unread,
Jun 21, 2016, 9:53:58 PM6/21/16
to TiddlyWiki
With images you're not stuck with making individual tiddlers. You can  just use [img[./external/image.jpg]] to access them. But better, I use a modified version of Tobias Beer's <ximg> set of macros so that I can change the base path of images depending on what platform I am on. This  way I can use a different path, for instance, on an android device than what I use on a desktop. (on the android images might need to be separated from the TW's to save space on the main memory card, for instance.). If you try using TW on node.js, you quickly discover that node.js doesn't serve up images. You can run a separate server, or call a long path to your files, but then all your paths have to be changed.

http://tobibeer.github.io/tb5/#External%20Image%20Path

The main difference I have in my setup, is that I've made a drop-down list of directory names to change them out quickly.

I haven't looked at audio before. I wonder why the audio/mp3 format isn't included in the drop-down list?

Mark
Reply all
Reply to author
Forward
0 new messages