It is possible ?
-
-
@Lindon some mistake ^^
-
@yall so what kind of thing is myFileIndex?
heres a clue: its either a string or a number....which?
-
@Lindon
these are the sample .wav files -
@yall so what kind of thing is myFileIndex?
heres a clue: its either a string or a number....which?
-
@Lindon un nombre ^^
-
HiseSnippet 1505.3oc6W01aaTDDdu3bo0FJpEJR7wUV7AGkDWekRAQnfyKNHKRZMwouopppM2s1dI6sq0dqShAUI9owOA9ov+.X18tyduTmzTKJpEg+f0sytyLOyK6Ly1QICoIIRExq7AiGRQdene2wB8fsFPXBT6sQdWy+9sdxA3N6twSasOZywCIIIzHjmWoevbDuxKhr+9yueSBmHBoSIgPORxBo6xhY5oT6z7GYb9NjH5ArXmSemlsCkhsjb4H.Nk7afFRBOhzmdeh4XK3i7VpUDSKUc0DMMA4s3lxnwcGHOQjd9GwRXGxolEAntffRIuijGYPrgJZqALdTmbyNAg776L0ITJ0IbS+8XQrIzm5LttcC7TNb8GdKTDdkJ.u.W30vAdy.RdNPZwTHcC+tgJ1P8zcL34C7aKzTUOB31cgR5YQK7vk72RBmPnqGSNhtiBVLgiZ2sQiUwveKudkJfqOQiOlnxhzajrwnHlDeOrMendep1RnKIdHmNAE0pld7pfLREgXTbaMMNA37N30wUZI5yDz5bIIxJfcXbZBfAYGojWqnp2fy2ar4.lPtQBOq5.JmKqeB43pqhqlPgyFMYkLll+8ID9QLQ+7k+hTFmu74qWwH6XqfaKhnmBBtw5NpcWxgTd.PM2WAF6Vx3gRArnV0zsMVH7iI3f4f6MRDpYRAVJLWOLLp.yILmqUAAyGQWtxuVoLqWsrEkgUku0sv8XhHrbjFex.phh0Cn3vQJEvGeL13onQX.5v43TLKAGZsFbOkLtd85fL.8kH4z5CULCBeLEKn.OZIdTRp75YR5UVVvFk7MUwqTLzZrRiKQ.95ZKarNC13xPBGqH..uGdOBD4MeCwqZAqNM1tBN.Xnrwzb8q.Y72clnXcPC80CVK.Leq8W9UhDkK+RJOgd1MWYE6VVXUzfcNjEFoQn5ITvWnompqtZQL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wav file. as soon as I click on next it is deleted. he is already interacting ^^
-
@yall said in It is possible ?:
@Lindon un nombre ^^
correct - so given we need a string and not a number this will never work.
To get the string we need - we need the name of all the wav files (and then we select one) and the directory they are in.
so we can then say:
PLAYERAsAudio.setFile(thedirectory_we_want_to_use+ the_file_name_we_want_to_use);
and it will load correctly.
So.....
first we need to get the directory we want to use....
PlayerAsAudio.getFilename() gives us that.
Now how do we get the directory it cam from?
First we need to make the string we got from PlayerAsAudio.getFilename() into a HISE file object ..how do we do that?
Hint : its documented in the documentation AND its listed in this thread...
-
@yall said in It is possible ?:
HiseSnippet 1505.3oc6W01aaTDDdu3bo0FJpEJR7wUV7AGkDWekRAQnfyKNHKRZMwouopppM2s1dI6sq0dqShAUI9owOA9ov+.X18tyduTmzTKJpEg+f0sytyLOyK6Ly1QICoIIRExq7AiGRQdene2wB8fsFPXBT6sQdWy+9sdxA3N6twSasOZywCIIIzHjmWoevbDuxKhr+9yueSBmHBoSIgPORxBo6xhY5oT6z7GYb9NjH5ArXmSemlsCkhsjb4H.Nk7afFRBOhzmdeh4XK3i7VpUDSKUc0DMMA4s3lxnwcGHOQjd9GwRXGxolEAntffRIuijGYPrgJZqALdTmbyNAg776L0ITJ0IbS+8XQrIzm5LttcC7TNb8GdKTDdkJ.u.W30vAdy.RdNPZwTHcC+tgJ1P8zcL34C7aKzTUOB31cgR5YQK7vk72RBmPnqGSNhtiBVLgiZ2sQiUwveKudkJfqOQiOlnxhzajrwnHlDeOrMendep1RnKIdHmNAE0pld7pfLREgXTbaMMNA37N30wUZI5yDz5bIIxJfcXbZBfAYGojWqnp2fy2ar4.lPtQBOq5.JmKqeB43pqhqlPgyFMYkLll+8ID9QLQ+7k+hTFmu74qWwH6XqfaKhnmBBtw5NpcWxgTd.PM2WAF6Vx3gRArnV0zsMVH7iI3f4f6MRDpYRAVJLWOLLp.yILmqUAAyGQWtxuVoLqWsrEkgUku0sv8XhHrbjFex.phh0Cn3vQJEvGeL13onQX.5v43TLKAGZsFb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WHfWeXpGsfY5vz0MxqO0kJhrK9K3W1lAl0dYaFju4+J5HlDpjuHLcDVSd5UsT.6VXKDW1eOyZ7jYU88aTuATaNh8hvPiKds.DZ17b64fmuXN34NyAOe4bvycmCd9p4fmu9B4wzbYiQZYb5UNfPmV12A34MoorWIzeSjj5OM
I advance a little. I load a wav file. as soon as I click on next it is deleted. he is already interacting ^^
stop doing this - you are only confusing yourseslf - your model it wrong.
-
@Lindon well I see that I don't understand anything I'm wasting your time it seems so simple
-
@yall you can only learn in steps - If I show you the completed version you will learn nothing.
-
@Lindon I'm not asking you. I'm trying to understand it's already very kind of you to help me
-
@yall - okay well here is the solution;
Whats clear though is you are struggling with the basic data types used in programming - the difference between a string, a number and an array for a start - I strongly recommend you go get some basic understanding of these types, and read the documentation carefully - dont read what you want it to say - but read what it is actually telling you - it will tell you data types it expects.
HiseSnippet 1897.3oc6X0uabTCDe2jrs8NnnBTj3OsB7GWHMG2UBEDsEt7wEzolzdjqzOTaUjytduyM6Zuxq2jdBUAuO7e7DfDu.7LvS.uAvX681yaxlPZTKhhZT+HdrmY9MiG+y639BtOIMkKbbqc2wIDG221avXlbzZivTlSu0cbq6IIoR0ecVcbBNMkD335N62pl2s1bN5e9yuYUbDl4SlJxw4dbpOYSZLUNUZ+N2hFEsANfbWZr0pWtSOeNaMdDOCvxrdsbRv96gGRtMVsrY7bbOW2.pjKFHw.XbbmaUdv3Ai3GvLq+dzT5tQD0f1NC.CYDuAOJPgXkTm0FQiB5OIlScbb85OMCLqICbYusnAzB4SyDWROAZpF14C2YJCuYKAu11vqkE7p.RtVPZNCjdWuA9BZhb5LJ77Vd8XRhHDCocanXVqyL+7a6sFGVAS1LFuGYCALnPiFWqUqqff+YgqWGx7oRz9XAp+lq7vtaitIRWDzbHQpwmdTi4MyNeEZrR5JYATtshZACvwIQjBXeTSvxh6IIwoflKitNpdW1PJizLhiCzFXCZDIE.MuOmG0.TqtxoqDEs0X8TfdO5IWurPUIi8DwZo8XAjmARaYi9M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757LH4MvmySd75BBNdL5VjwoHS+Yo1x1INs0NsVd4cF9QsULvNfQFRfsEAzFumqxeZIcYApw+1e.B99dqqf.z7YdpER2IDgjp1IcWGNH3SLcxVyacR5dRdBrgWTBC14eJ6+rh3syS6LtXvudPGZ5VbEaAV.hcmwwxpm6ebeYpYc5chlUBe.jBLpySN1937Febwben6XT6hK3Y5dzxG+z2Y4iNYcNfFHGMU.uyHBc3Ho8qhn8qSEA0KP8hUP9P6fbXmjImJ5oArgVxIUWTn6WN+QJN5KRbIus3AYQXY4GHQ8pP4S.m5K8pDpWdfAb4ise0nWZuZxoEhuqWepzeT0XblJvHTT+p.i4u0zE85FFBewyT.Nm2FO3UyCKY692eh60kJaxUmV0tunH33eque+z9VeIm525avXlOrkPrKMz6S.Cl+dvMr1tRg1tLLDyA1h2lykpKtreqQC8ll6BLeoUS1G3EKagIW89piJMVkGMbnw3mMg9LBLUA+5p+nQPN85u7GpaoNoW9r8Y7kOm6+bu74qAzLkdb1ZSv3.pZquKaeRDbPRiw2CtmKDmEImHscITtEmwSFwYT+xEkvmSNbHQXi8JCnUjR3fwTIWty1jHBN0p5+i6rIzbLVb3yUu.4h1uvOTck6WenmAtHEM.502qGl8+2WOrMzSHP0tEFJBUbS2NK1zTN3cFC5MRwGMi5iQLiaMgJa.zEldveA+jOYa0X27IaOYx+U7QL1Wv2w2780p5zKnk.wMSStWyaK0XTwGR640pYKfaNftiuuJEuTaGmp04pmAc9ryfNKeFz4yOC5bsyfNewYPmu7D0Qc4xJYRdr4HGHneWcCEttEWz6NqyeCO69UsA
take careful note of the VAST number of Console.print() statements there are in there, allowing you to check at each step that you have the right data type and its filled with the correct data...before you ask for help again make sure you have done a massive amount of Console.print statements to make sure you are getting what you think you are getting at each line in the code..
-
@Lindon it's very nice I did not ask you as much. if one day I can help you in my turn I would do it with great pleasure. I will study your example from the start
-
@yall no problem - please follow the advice.
-
@Lindon don't forget that i'm a beginner +. I continue to learn from reading all the forum posts. but actually I did not learn things in the right order. it works for a while and then when there is a real difficulty. again thank you for your time I will send you a postcard from the french riviera :)
-
@Lindon hello, there seems to be a bug. I compiled your snippet to try something out and I see that the next and prev buttons navigate through the folder fine but do +2 instead of +1. in hise it works perfectly. I haven't updated my version of hise for a while but for something so simple it's weird isn't it?
-
@yall working fine here...
-
@Lindon I just realized that "is meta parameter" was activated. the button therefore counted the pulse and the release = x2